sytax to remove specifc item in string-indexed array???
| From: | Vincent Ma | Date: | Fri, 14 Dec 2001 06:53:43 +0000 |
| Subject: | sytax to remove specifc item in string-indexed array??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77865@lists.php.net to get a copy of this message | ||
Hi everyone:
I would like to know how to specific item in array. For the add new item
to array, we know just :
$array += array("$key" => "$value");
How to remove specific item in array???
I tried --> $array -= ("$key" => "$value");
Don't work... >_<.....
Before, i saw some code in other website, they used...
$array[$index] -= $value <-- to remove???????
### i think this just work to number-indexed array....
not for string-indexed array
Thank for you help
Vincent Ma