DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+4 =
Submit