Re: Associative Array key funkyness
| From: | Zeev Suraski | Date: | Fri, 28 Jul 2000 20:55:32 +0000 |
| Subject: | Re: Associative Array key funkyness | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8852@lists.php.net to get a copy of this message | ||
Outside of a string, $foo[bar] is an invalid syntax. PHP recognizes it,
though, and warns you about this with an E_NOTICE warning. Whether or not
this warning is displayed, depends on your error_reporting settings.
Zeev
On Fri, 28 Jul 2000, Aron Rubin wrote:
> Sometimes when I build PHP it is fine with $foo[bar] and sometimes
> it does not like that and will only accept $foo['bar']. Why?
> Note: this is not within a string.
>
> Aron
>
>
>
> --
>
> /*******************************************************
> * Aron Rubin *
> *******************************************************
> * Phone:(856) 338-4270 Mail Stop: A&E 2W *
> * Cell: (609) 320-8800 ICQ: n/a *
> * Email:arubin@atl.lmco.com *
> *******************************************************/
>
>
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/