cvs: phpdoc /en/reference/array/functions array-diff-uassoc.xml

From: Date: Mon, 07 Mar 2005 11:39:04 +0000
Subject: cvs: phpdoc /en/reference/array/functions array-diff-uassoc.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366869@lists.php.net to get a copy of this message
leszek Mon Mar 7 06:39:04 2005 EDT Modified files: /phpdoc/en/reference/array/functions array-diff-uassoc.xml Log: - added para - made example actually output something http://cvs.php.net/diff.php/phpdoc/en/reference/array/functions/array-diff-uassoc.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/reference/array/functions/array-diff-uassoc.xml diff -u phpdoc/en/reference/array/functions/array-diff-uassoc.xml:1.6 phpdoc/en/reference/array/functions/array-diff-uassoc.xml:1.7 --- phpdoc/en/reference/array/functions/array-diff-uassoc.xml:1.6 Mon Nov 1 07:39:23 2004 +++ phpdoc/en/reference/array/functions/array-diff-uassoc.xml Mon Mar 7 06:39:04 2005 @@ -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 @@ $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>

« previous php.doc (#969366869) next »