note 34911 added to function.array-splice

From: Date: Mon, 11 Aug 2003 17:40:32 +0000
Subject: note 34911 added to function.array-splice
Groups: php.notes 
Request: Send a blank email to php-notes+get-53892@lists.php.net to get a copy of this message
Removing elements from arrays This works better - much quicker $ar = array("einstein", "bert", "colin", "descartes", "renoir"); $a = array_slice($ar, 0, $ind); $b = array_slice($ar, $ind + 1); $ar = array_merge($a, $b); ---- Manual Page -- http://www.php.net/manual/en/function.array-splice.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34911 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34911&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34911&report=yes

« previous php.notes (#53892) next »