note 30712 added to ref.array
| From: | alban dot medici at fr dot netcentrex dot net | Date: | Wed, 26 Mar 2003 15:18:20 +0000 |
| Subject: | note 30712 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45853@lists.php.net to get a copy of this message | ||
If you want to simply remove a couple (key - value) from an indexes array , use the unset function
as :
$yourArray = array("Key1" => toto,
"key2" => titi,
"badKey" => value);
// you make your treatment and whant to remove the badKey
// cause not useful anymore ...
unset($yourArray[badKey]);
//then your array look like this :
$yourArray[Key1] = toto
$yourArray[key2] = titi
--
http://www.php.net/manual/en/ref.array.php
http://master.php.net/manage/user-notes.php?action=edit+30712
http://master.php.net/manage/user-notes.php?action=delete+30712
http://master.php.net/manage/user-notes.php?action=reject+30712