A Cleaner Gentler PHP Variable Dump

Sure. Some structures, like an object with member arrays, will have you in a straight-jacket long before you determine where a particular value falls within the structure and how you should construct a reference to it.
Next time, try this:
print('<pre>').print_r($myarray,1).('<pre>');
The results are astonishingly different...
<pre>
Array
(
[0] => Array
(
[0] => Array
(
[0] => apple
[1] => orange
[2] => banana
)
[1] => Array
(
[0] => apple
[1] => orange
[2] => banana
)
)
[1] => Array
(
[0] => apple
[1] => orange
[2] => banana
)
[2] => Array
(
[0] => Array
(
[0] => apple
[1] => orange
[2] => banana
)
[1] => Array
(
[0] => apple
[1] => orange
[2] => banana
)
)
)
</pre>

2 comments
i tend to just view source or
i tend to just view source or inspect element in firebug
View php variables in source
View php variables in source/firebug??
Post new comment