removing an element from an array

From: Date: Wed, 01 Oct 2003 10:25:20 +0000
Subject: removing an element from an array
Groups: php.general 
Request: Send a blank email to php-general+get-164512@lists.php.net to get a copy of this message
Hi If I have an array and want to remove and element from this array. correct me if this is the wrong approach: create a temporary array with 1 element less than the origional array, get the position of the element ( is there a function for this?) and then run through the origional array copying all elements besides the element which is meant to be removed. Is there no function to do this? It seems like alot of overhead to do this process, especially if the array is big. comments? Angelo

« previous php.general (#164512) next »