note 23923 deleted from language.types.array by dams

From: Date: Fri, 02 Aug 2002 10:48:36 +0000
Subject: note 23923 deleted from language.types.array by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-34139@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

« previous php.notes (#34139) next »