RE: [PHP] in the middle of shift and pop

From: Date: Tue, 19 Aug 2003 22:40:43 +0000
Subject: RE: [PHP] in the middle of shift and pop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160095@lists.php.net to get a copy of this message
unset($A[2]); -----Original Message----- From: Decapode Azur [mailto:blue_prawn@tuxfamily.org] Sent: Tuesday, August 19, 2003 3:26 PM To: php-general@lists.php.net Subject: [PHP] in the middle of shift and pop is it possible to remove an element of an indexed array such as this exemple $A = array('a', 'b', 'c', 'd', 'e', 'f'); in a way that we can optain this result : $A = array('a', 'b', 'd', 'e', 'f'); something like that perhaps ? array_remove($A, 2); If such a function does not exists, what would be the more efficient way to do so a lot of time on very big arrays ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#160095) next »