Richard Davey wrote:

Hi,

Wednesday, December 10, 2003, 6:29:43 PM, you wrote:

RM> Because it's and array!  print and echo take strings, not
RM> arrays, I believe.  Anyway, print_r() or a foreach loop will do it
RM> for you.

Agreed.. print_r() is the best, but if you're outputting all of this
text into the browser (which is quite common) then I strongly suggest
you wrap it with some <PRE> tags. You'll understand why when you try
it.


You can always use var_dump, too. Not a pretty as print_r, but it gives you more info (mostly for debugging). And don't forget var_export. ;-)


--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to