Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array get first x elements

$sliced_array = array_slice($array, 0, 5)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #array #elements
ADD COMMENT
Topic
Name
9+9 =