|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-11 11:00 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 18:00:01 2025 UTC |
Description: ------------ If this is not going to be supported, it should at least be documented. I couldn't find anything related to this limitation. Reproduce code: --------------- <?php class Foo { public $a = 3; public $b = array( 'c' => 9 ); } $bar = new Foo; echo $bar->{'a'}; // works echo $bar->{'b["c"]'}; // doesn't work ?> Expected result: ---------------- Output: 3 9 Actual result: -------------- Output: 3 Notice: Undefined property: Foo::$b["c"] in C:\www\project.local.ro\trunk\Source\public\test.php on line 11