Re: unable to use vars in foreach [updated question]
| From: | Ryan King | Date: | Mon, 15 Nov 2004 04:29:33 +0000 |
| Subject: | Re: unable to use vars in foreach [updated question] | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202010@lists.php.net to get a copy of this message | ||
On Sunday, November 14, 2004, at 08:44PM, Jonathan Villa <jvilla@e37.net> wrote:
>So, searching php.net (I swear I did before...)
>
>I found this at http://us2.php.net/language.types.array
>
>" You cannot use arrays or objects as keys. Doing so will result in a
>warning: Illegal offset type."
>
>Neverthought that my var was an object, just thought maybe a string. My
>new question is, how can I convert this object to a string? Or get the
>val of it
See my post from about 1 minute ago.
-ryan