Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php make array to certain length

#trim array to certain legnth
$alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
$alphabetFirst10 = array_slice($alphabet, 0, 10);
 
PREVIOUS NEXT
Tagged: #php #array #length
ADD COMMENT
Topic
Name
4+7 =