Im trying to remove the first element of the last array
Array:
$harbours = array( '67' => array('boat1', 'boat2'), '43' => array('boat3', 'boat4') );
I want to remove and return boat3
$last = end($harbours); $boat = array_shift($last);
If I then print_r ($harbours) , "boat3" still exists.
source share