note 23923 added to language.types.array

From: Date: Thu, 01 Aug 2002 14:42:31 +0000
Subject: note 23923 added to language.types.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-34089@lists.php.net to get a copy of this message
Hi, i just noticed, that $a["a"]["b"] = "xyz"; echo $a["a"]["b"]; => "xyz" works as expected, but when using classes / attributes: $this->a["a"]["b"] = "xyz"; echo $this->a["a"]["b"]; => "x" it seems, as if only the first character gets printed (stored?). Does anybody know why this happens, or do i just have to alter the syntax of the second example to get the expected result? Please, if you know the answer, send me an email, too. chris -- http://www.php.net/manual/en/language.types.array.php http://master.php.net/manage/user-notes.php?action=edit+23923 http://master.php.net/manage/user-notes.php?action=delete+23923 http://master.php.net/manage/user-notes.php?action=reject+23923

« previous php.notes (#34089) next »