> Is there no function to do this? It seems like alot of overhead to do
this
> process, especially if the array is big. comments?
>
Not if you do not create another array, which in my oppinion
is totally unnecessary.
I always did the following after finding the position from
where to strip off the element:
for ($i=$elpos; $i<count($array); $i++) {
$array[$i] = $array[$i+1];
}
unset($array[count($array)-1]);
--
Dennis Sterzenbach
www.darknoise.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php