note 63760 deleted from function.array-diff-key by betz

From: Date: Thu, 30 Mar 2006 09:45:06 +0000
Subject: note 63760 deleted from function.array-diff-key by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107004@lists.php.net to get a copy of this message
Note Submitter: admin at df dot sk ---- 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; } ?>

« previous php.notes (#107004) next »