note 86109 added to function.array-diff-key

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
you can use this function for return the difference of two array !

function array_unique_diff_key ($array1, $array2)
{
  if (is_array($array1) && is_array($array2))
    return array_diff_key($array1, $array2) + array_diff_key($array2, $array1);
  else if (is_array($array1)) return $array1;
  else if (is_array($array2)) return $array2;
  else return array();
}
----
Server IP: 195.221.21.36
Probable Submitter: 91.168.49.108
----
Manual Page -- http://www.php.net/manual/en/function.array-diff-key.php
Edit        -- https://master.php.net/note/edit/86109
Del: integrated  -- https://master.php.net/note/delete/86109/integrated
Del: useless     -- https://master.php.net/note/delete/86109/useless
Del: bad code    -- https://master.php.net/note/delete/86109/bad+code
Del: spam        -- https://master.php.net/note/delete/86109/spam
Del: non-english -- https://master.php.net/note/delete/86109/non-english
Del: in docs     -- https://master.php.net/note/delete/86109/in+docs
Del: other reasons-- https://master.php.net/note/delete/86109
Reject      -- https://master.php.net/note/reject/86109
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.