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

93

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

$new = array_slice($old, -1)

Comments

Submit
0 Comments