View Full Version : Trace entire array?
DesignerMichael
August 24th, 2008, 01:49 PM
How do you trace an entire array... Eg, like php's print_r. Is there a way to easily do it? I need to check all of the data in my arrays to see if it's correct.
Also, whats the import for trace? I can't find it...
senocular
August 24th, 2008, 01:58 PM
When you trace an array, it will automatically show you all the (numerically indexed) objects. Are you looking for something that will trace an object/hash? There's nothing that will do that within the language by default, buy you can make your own using for..in loops.
Also there is no import for trace, its in the open global namespace
DesignerMichael
August 24th, 2008, 02:12 PM
Why doesn't trace do anything then... lol
At least not in classes...
Edit: Oh wait, it started working again... I must be high... lol! Or maybe something is going on with my vista/win xpsp2 compatibility mode...
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.