Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to remove last element from php array

if(empty($transport[count($transport)-1])) {
    unset($transport[count($transport)-1]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #element #php #array
ADD COMMENT
Topic
Name
3+1 =