Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove all items of an array except the last 5 in php

$a5 = array_slice($arr, -5);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #items #array #php
ADD COMMENT
Topic
Name
3+4 =