note 40819 added to ref.array
| From: | webmaster at pzfn dot com | Date: | Tue, 16 Mar 2004 00:15:34 +0000 |
| Subject: | note 40819 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66884@lists.php.net to get a copy of this message | ||
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;
}
?>
----
Manual Page -- http://www.php.net/manual/en/ref.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40819
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40819&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40819&report=yes
Search -- http://master.php.net/manage/user-notes.php