note 11857 rejected and deleted from language.types.array.php by torben
| From: | torben@php.net | Date: | Fri, 09 Mar 2001 23:09:37 +0000 |
| Subject: | note 11857 rejected and deleted from language.types.array.php by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12136@lists.php.net to get a copy of this message | ||
Named indeces
These are equal:
a) $arr[foo] = "bar"
b) $arr['foo'] = "bar"
c) $arr["foo"] = "bar"
But there are not
a) echo "Value is $arr[foo]"
b) echo "Value is $arr['foo']"
c) echo "Value is $arr["foo"]"
(only (a) works, b and c do NOT work, in fact, they give a VERY strange error)