|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-03-02 06:54 UTC] sas
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04: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! */