|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-09 07:56 UTC] ois at oisnot dot com
[2010-12-22 12:56 UTC] johannes@php.net
-Status: Open
+Status: Closed
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: johannes
[2010-12-22 12:56 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
Description: ------------ I would like to overload array access like this <?php class MyClass { private $parameters = array(); function __set( $name, $value, $key ) { if( ! isset( $this->parameters[ $name ] ) ) { $this->parameters[ $name ] = array(); } $this->parameters[ $name ][ $key ] = $value; } } $object = new MyClass; $object->a[ 'x' ] = 'value'; ?>