Re[2]: [PHP] Am I missing Something
| From: | Tom Rogers | Date: | Sat, 31 Jan 2004 01:53:07 +0000 |
| Subject: | Re[2]: [PHP] Am I missing Something | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176428@lists.php.net to get a copy of this message | ||
Hi,
Saturday, January 31, 2004, 9:22:41 AM, you wrote:
CWP> Stuart <mailto:lists@sharedserver.net>
CWP> on Friday, January 30, 2004 2:56 PM said:
>> print '<pre>'; print_r($somearray); print '</pre>';
CWP> not to steal your glory stuart but you can make it easier on yourself by
CWP> doing the following:
CWP> echo '<pre>',print_r($somearray),'</pre>';
CWP> it's merely less typing.
CWP> hth,
CWP> chris.
CWP> --
CWP> PHP General Mailing List (http://www.php.net/)
CWP> To unsubscribe, visit: http://www.php.net/unsub.php
That should be
echo '<pre>',print_r($somearray,1),'</pre>';
or you will get a stray 1 from the return of print_r();
--
regards,
Tom