Re: arrays and php
| From: | Jason Wong | Date: | Tue, 30 Sep 2003 18:05:31 +0000 |
| Subject: | Re: arrays and php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164431@lists.php.net to get a copy of this message | ||
On Wednesday 01 October 2003 00:10, Chris W. Parker wrote:
[snip]
> If you're not sure what a value is use print_r() to determine it.
>
> echo "<pre>";
> print_r($chk);
> echo "</pre>";
>
> Quick side note on the above code:
>
> You cannot write it like:
>
> echo "<pre>".print_r($chk)."</pre>";
>
> It will not work.
You can do this though:
echo "<pre>", print_r($chk), "</pre>";
Or if using a recent version of php:
echo nl2br(print_r($var, 1)); //or something like that
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
No bird soars too high if he soars with his own wings.
-- William Blake
*/