|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-20 20:28 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 23:00:01 2025 UTC |
How to test: class c1 { var $t; } class c2 { var $s; } $v1 = new c1; $v2 = new c2; $v2->s = "Working!"; $v1->t[] = $v2; print $v1; /* Object */ print $v1->t; /* Array */ print $v1->t[]; /* Object */ print $v1->t[]->s; /* Should be "Working!" but it fails! */