rfc:functional-elements:iterate
This is an old revision of the document!
function iterate()
Prototype
Example implementation
function iterate($list, $collect = false) { if ($collect) $result = array(); foreach ($list as $element) { if ($collect) $result[] = $element; } if ($collect) return $result; }
rfc/functional-elements/iterate.1205679518.txt.gz · Last modified: 2017/09/22 13:28 (external edit)