note 11857 added to language.types.array.php

From: Date: Fri, 09 Mar 2001 23:03:11 +0000
Subject: note 11857 added to language.types.array.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12135@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) http://www.php.net/manual/en/language.types.array.php

« previous php.notes (#12135) next »