note 37598 added to ref.classobj

From: Date: Thu, 20 Nov 2003 13:53:31 +0000
Subject: note 37598 added to ref.classobj
Groups: php.notes 
Request: Send a blank email to php-notes+get-60694@lists.php.net to get a copy of this message
concerning the problem with multilevel objects, if you encase it in braces it will work. <? $myObj = new bar (); echo ('--- '.$myObj->obj->str.' ---'); echo ("\\n"); echo ("--- {$myObj->obj->str} ---"); //like this. /* output: --- something --- --- something --- */ ?> ---- Manual Page -- http://www.php.net/manual/en/ref.classobj.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37598 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37598&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37598&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60694) next »