note 43981 added to ref.overload

From: Date: Sun, 11 Jul 2004 15:09:35 +0000
Subject: note 43981 added to ref.overload
Groups: php.notes 
Request: Send a blank email to php-notes+get-73052@lists.php.net to get a copy of this message
josh said: >One thing about __get is that if you return an array it >doesn't work directly within a foreach... In PHP 5, however, you can use directly an array returned by __get if you enclose the expression in parentheses: foreach(($a->test) as $value) ... ---- Manual Page -- http://www.php.net/manual/en/ref.overload.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43981 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43981&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43981&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73052) next »