Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collection nth method

$collection = collect(['a', 'b', 'c', 'd', 'e', 'f']);

$collection->nth(4);

// ['a', 'e']
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #collection #nth #method
ADD COMMENT
Topic
Name
6+4 =