Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php trim 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 #trim #array #length
ADD COMMENT
Topic
Name
1+8 =