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