Re: foo[bar] _or_ foo['bar'] ?
| From: | Phil Driscoll | Date: | Tue, 13 Feb 2001 12:37:25 +0000 |
| Subject: | Re: foo[bar] _or_ foo['bar'] ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39403@lists.php.net to get a copy of this message | ||
This is the correct format:
> doWhatSoEver($foo['bar']);
If your error reporting level is set high enough, php will complain about
$foo[bar] unless you have defined bar as a constant elsewhere.
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org