Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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

$new = array_slice($old, -1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #items #array #php
ADD COMMENT
Topic
Name
7+9 =