lithium\util\Collection::next()
Moves forward to the next item.
Returns
mixedThe next item or false
, in case there's no next item or the collection
is empty.
Source
public function next() {
$value = next($this->_data);
return key($this->_data) !== null ? $value : false;
}