note 31206 added to function.array-slice

From: Date: Sun, 13 Apr 2003 19:43:04 +0000
Subject: note 31206 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-46573@lists.php.net to get a copy of this message
In response to "j dot bailleul at free dot fr " idea to remove an item from an array, I found this a bit easier: unset($arr[5]); // This removes the element from the array unset($arr['banana']); // remove element with key 'banana' I found this here: http://forums.devshed.com/archive/5/2002/12/2/48525 -- http://www.php.net/manual/en/function.array-slice.php http://master.php.net/manage/user-notes.php?action=edit+31206 http://master.php.net/manage/user-notes.php?action=delete+31206 http://master.php.net/manage/user-notes.php?action=reject+31206

« previous php.notes (#46573) next »