Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get last 3 elements of array

array_slice($a, -3, 3, true);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #elements #array
ADD COMMENT
Topic
Name
1+2 =