note 112093 rejected from class.traversable by Thiago

From: Date: Thu, 02 May 2013 18:15:14 +0000
Subject: note 112093 rejected from class.traversable by Thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194690@lists.php.net to get a copy of this message
Note Submitter: shehi at imanov dot name ---- @kevinpeno: Objects can be traversable as well. Why many developers restrict the idea to arrays, is something I don't understand. The only similarity here is that objects can be used in scope of Traversable and even ArrayObject, but that doesn't make them arrays - is_array() will always return false for the objects.

« previous php.notes (#194690) next »