DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+4 =
Submit