Re: ARRAY
| From: | Justin Patrin | Date: | Wed, 10 Dec 2003 18:44:36 +0000 |
| Subject: | Re: ARRAY | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172374@lists.php.net to get a copy of this message | ||
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>