>
there is also print_r() which is much nicer for arrays imo
>
print "<pre>";
print_r($arr);
print "</pre>";
Well, in my code it sometimes matters wether I have an integer '1' or a
string '1', hence the var_dump.If you don't need it the layout of print_r
is indeed somewhat 'nicer'.
--
Rik Wasmus
>Well, in my code it sometimes matters wether I have an integer '1' or a
>string '1', hence the var_dump.If you don't need it the layout of print_r
>is indeed somewhat 'nicer'.
Please could you post a list of projects you've worked on so I can avoid
having anything to do with them.
Peter Fox <peterfox@emine nt.demon.co.uk. not.this.bit.no .htmlwrote:
Following on from Rik's message. . .
>Well, in my code it sometimes matters wether I have an integer '1' or a
>string '1', hence the var_dump.If you don't need it the layout of
>print_r
>is indeed somewhat 'nicer'.
>
Please could you post a list of projects you've worked on so I can avoid
having anything to do with them.
Hey!
It's by choice and design, not by PHP :P
Sometimes I hate variable vars....
--
Rik Wasmus
Comment