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

PHP
0

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

$new = array_slice($old, -1)
Posted by: Guest on August-16-2021

Code answers related to "remove all items of an array except the last one in php"

Browse Popular Code Answers by Language