note 49645 deleted from ref.overload by sobak

From: Date: Tue, 22 Nov 2016 03:50:05 +0000
Subject: note 49645 deleted from ref.overload by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207452@lists.php.net to get a copy of this message
Note Submitter: Shores ---- One way to overcome the foreach overloading malfunction: //non functioning: foreach ($object->arrayProperty as $key => $value) { ... } //functioning: foreach (array_merge($object->arrayProperty) as $key => $value) { ... } Bye!

« previous php.notes (#207452) next »