pop method of array in php 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]);
}