note 112499 added to class.iterator
| From: | DanielLoNigro | Date: | Sun, 23 Jun 2013 06:33:27 +0000 |
| Subject: | note 112499 added to class.iterator | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195326@lists.php.net to get a copy of this message | ||
If you're using PHP 5.5 or above and are creating a simple iterator, consider using a generator
function instead. There is significantly less boilerplate code and the code is easier to read. http://au1.php.net/generators
----
Server IP: 113.20.13.217
Probable Submitter: 14.201.100.180
----
Manual Page -- http://php.net/manual/en/class.iterator.php
Edit -- https://master.php.net/note/edit/112499
Del: integrated -- https://master.php.net/note/delete/112499/integrated
Del: useless -- https://master.php.net/note/delete/112499/useless
Del: bad code -- https://master.php.net/note/delete/112499/bad+code
Del: spam -- https://master.php.net/note/delete/112499/spam
Del: non-english -- https://master.php.net/note/delete/112499/non-english
Del: in docs -- https://master.php.net/note/delete/112499/in+docs
Del: other reasons-- https://master.php.net/note/delete/112499
Reject -- https://master.php.net/note/reject/112499
Search -- https://master.php.net/manage/user-notes.php