note 15456 added to function.array
| From: | tom at greycrow dot de | Date: | Tue, 11 Sep 2001 20:05:46 +0000 |
| Subject: | note 15456 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17920@lists.php.net to get a copy of this message | ||
OK. What I wanted to do was to remove a value from an array and I found a function here doing this.
But there is a much faster way:
// Supplied arguments:
// ------------------
// removevalue is the value you want to remove.
// array is the array you want it to be removed from.
unset ($array['removevalue']);
Greetings,
Tom
http://www.php.net/manual/en/function.array.php