note 40819 deleted from ref.array by aidan
| From: | aidan@php.net | Date: | Sun, 09 Oct 2005 09:15:17 +0000 |
| Subject: | note 40819 deleted from ref.array by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96742@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at pzfn dot com
----
You should be able to do this....
<?
function unset_by_val($needle,&$haystack) {
$haystack = array_flip($haystack);
unset($haystack[$needle]);
$haystack = array_flip($haystack);
return $haystack;
}
?>