note 63760 added to function.array-diff-key
| From: | admin at df dot sk | Date: | Thu, 30 Mar 2006 06:18:57 +0000 |
| Subject: | note 63760 added to function.array-diff-key | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106994@lists.php.net to get a copy of this message | ||
You can use my variant of array-diff-key() function. I don't know if it works identically like
the original one.
<?
function array_diff_key() {
if (func_num_args() < 2) return false;
$first_array = func_get_arg(0);
for ($d = 1; $d < func_num_args(); $d++)
foreach (func_get_arg($d) as $id => $val) unset($first_array[$id]);
return $first_array;
}
?>
----
Server IP: 195.46.80.5
Probable Submitter: 87.197.122.87
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-diff-key.php
Edit -- http://master.php.net/note/edit/63760
Del: integrated -- http://master.php.net/note/delete/63760/integrated
Del: useless -- http://master.php.net/note/delete/63760/useless
Del: bad code -- http://master.php.net/note/delete/63760/bad+code
Del: spam -- http://master.php.net/note/delete/63760/spam
Del: non-english -- http://master.php.net/note/delete/63760/non-english
Del: in docs -- http://master.php.net/note/delete/63760/in+docs
Del: other reasons-- http://master.php.net/note/delete/63760
Reject -- http://master.php.net/note/reject/63760
Search -- http://master.php.net/manage/user-notes.php