Forum Moderators: coopster

Message Too Old, No Replies

Print Array

Isn't there a function?

         

HeadBut

11:02 pm on May 28, 2006 (gmt 0)

10+ Year Member



Looking for a function that will print all the contents of an array... could swear there is one.

Thanks

eeek

11:03 pm on May 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



print_r() will do it

HeadBut

11:12 pm on May 28, 2006 (gmt 0)

10+ Year Member



Thanks! - That was record breaking fast!

:))

eeek

6:12 pm on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just good timing ;)

jatar_k

6:35 pm on May 29, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if you want it to be readable in a browser do it this way

echo '<pre>';
print_r($arrayname);
echo '</pre>';

dreamcatcher

6:54 pm on May 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if you want it to be readable in a browser do it this way

Or be lazy like me and just view the source code. :)