|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-03-24 09:31 UTC] rasmus
[2011-05-16 17:34 UTC] dtajchreber@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
<? class B { var $y; function B( $n ) { $this->y = "test_$n"; } }; class A { var $x; function A() { $this->x[0] = new B( 0 ); $this->x[1] = new B( 1 ); } }; $t = new A; echo $t->x[1]->y; ?>