php remove last serval element from array code example
Example: how to remove last element from php array
if(empty($transport[count($transport)-1])) {
unset($transport[count($transport)-1]);
}
if(empty($transport[count($transport)-1])) {
unset($transport[count($transport)-1]);
}