note 112093 added to class.traversable

From: Date: Thu, 02 May 2013 07:07:00 +0000
Subject: note 112093 added to class.traversable
Groups: php.notes 
Request: Send a blank email to php-notes+get-194685@lists.php.net to get a copy of this message
@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. ---- Server IP: 69.147.83.199 Probable Submitter: 176.33.48.227 ---- Manual Page -- http://php.net/manual/en/class.traversable.php Edit -- https://master.php.net/note/edit/112093 Del: integrated -- https://master.php.net/note/delete/112093/integrated Del: useless -- https://master.php.net/note/delete/112093/useless Del: bad code -- https://master.php.net/note/delete/112093/bad+code Del: spam -- https://master.php.net/note/delete/112093/spam Del: non-english -- https://master.php.net/note/delete/112093/non-english Del: in docs -- https://master.php.net/note/delete/112093/in+docs Del: other reasons-- https://master.php.net/note/delete/112093 Reject -- https://master.php.net/note/reject/112093 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194685) next »