php pop() 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]);
}