remove from array

From: Date: Tue, 09 Jan 2001 15:02:00 +0000
Subject: remove from array
Groups: php.general 
Request: Send a blank email to php-general+get-33464@lists.php.net to get a copy of this message
Hi, How can I remove an elent from an array. ie. myarray=(1,2,3,4,5); $num=3; while (list($key,$value) = each($myarray)) { if($num==$value) { remove 3 from array so $myarray contains 1,2,4,5 } } Thanks Ajdin

« previous php.general (#33464) next »