Re: Array question
| From: | Sparky Kopetzky | Date: | Sat, 26 Apr 2003 19:52:44 +0000 |
| Subject: | Re: Array question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145376@lists.php.net to get a copy of this message | ||
Doh!! - I forgot to add global $attr; to the routine. Working now... Thanks,
Jason!!
Sparky
----- Original Message -----
From: Jason Wong <php-general@gremlins.biz>
To: <php-general@lists.php.net>
Sent: Saturday, April 26, 2003 13:00
Subject: Re: [PHP] Array question
> On Sunday 27 April 2003 02:45, Sparky Kopetzky wrote:
> > Did that: PHP replied Invalid argument for foreach()
>
> Right, so give it a valid argument then. It is expecting an array.
>
> Do var_dump() on your variable to see what it is.
>
> --
> 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
> ------------------------------------------
> /*
> "I gained nothing at all from Supreme Enlightenment, and for that very
> reason it is called Supreme Enlightenment."
> -- Gotama Buddha
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php