Next
$Enum->Next([count])
- Returns the next item in the collection. You can optionally provide
Nextwith a count (which must be greater than zero), in which case it returns a list of the next count items. Note that if you provide a scalar context in conjunction with a count, you'll only get the last item in the list of returned items.Nextreturnsundefif it is currently on the last item in the collection.