Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get first 10 elements of array

$alphabet = array("a", "b", "c", "d", "e","g","h","i","j","k");
$firstFive = array_slice($alphabet, 0, 5); //get first 5 elements of array
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #elements #array
ADD COMMENT
Topic
Name
1+6 =