- added para

- made example actually output something


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181529 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Leszek Krupinski 2005-03-07 11:39:04 +00:00
parent bc6a5c147d
commit 630ea17fa5

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
<refentry id="function.array-diff-uassoc">
<refnamediv>
@ -23,7 +23,10 @@
containing all the values from <parameter>array1</parameter>
that are not present in any of the other arguments.
Note that the keys are used in the comparison unlike
<function>array_diff</function>. This comparison is done by a user supplied callback function.
<function>array_diff</function>.
</para>
<para>
This comparison is done by a user supplied callback function.
It must return an integer less than, equal
to, or greater than zero if the first argument is considered to
be respectively less than, equal to, or greater than the
@ -47,6 +50,7 @@ function key_compare_func($a, $b)
$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");
$array2 = array("a" => "green", "yellow", "red");
$result = array_diff_uassoc($array1, $array2, "key_compare_func");
print_r($result);
?>
]]>
</programlisting>