Re: Fatal error: Cannot use [] for reading
| From: | Bogdan Stancescu | Date: | Fri, 11 Oct 2002 07:01:00 +0000 |
| Subject: | Re: Fatal error: Cannot use [] for reading | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119609@lists.php.net to get a copy of this message | ||
It works both with and without quotes around the key. Which is normal - you will be amazed at how forgiving PHP is - try this:
<?
echo(test);
?>
Bogdan
Leif K-Brooks wrote:
I am using quotes around the key, just a dumb mistake in the example... Leif K-Brooks wrote:Any idea what that error means? I'm trying to do something like: $array[] = array(a => "a value");