Hello,
I just wondered if there were an native PHP function that would replicate the following snippet?
<?php
$array = array(0 => 'element1', 1 => 'element2');
$element1 = $array[0];
unset($array[0]);
?>
Basically, I wish to grab an array element but unset that particular key at the same time. Is this possible?