Re: HELP! printing Arrays
| From: | Ryan A | Date: | Thu, 04 Mar 2004 00:46:51 +0000 |
| Subject: | Re: HELP! printing Arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179398@lists.php.net to get a copy of this message | ||
On 3/4/2004 1:32:42 AM, Ben Ramsey (lists@benramsey.com) wrote:
> I know that others have already helped you learn out to print out an
> array, but you can also use print_r($array); to print out the array.
> It's not useful for the end-user of your application, but it can help
> you out as you're
> programming.
Too true, I use it a lot during development, you may have an error or typo
while programming
and getting the values may be wrong, but using print_r() you get the exact
values the script gets
in a pretty easy to read form which you can follow to see if your programs
running right.
Cheers,
-Ryan