Remove value from array
| From: | phantom | Date: | Wed, 16 Jan 2002 22:05:37 +0000 |
| Subject: | Remove value from array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80845@lists.php.net to get a copy of this message | ||
$Str = apple,orange,cyanide,bananna
$Arr = split(",",$Str);
How do I remove the unwanted value from the array?
(in this example, Cyanide ($Arr[2]) from the Fruit array)???
Thanks.
array_splice()???