The each()
method executes a provided function once for each item in the collection.
Description
public AbstractCollection::each(callable $callback): static
Parameters
callback
A function to execute for each element in the collection.
Return Value
Returns an instance of static
which supports method chaining
Exceptions
None