| PHP » GoLang | login |
            register |
            
            about | 
| GoLang array_udiff_assoc
                                request it (694)
                            GoLang replacement for PHP's array_udiff_assoc
                            [edit | history] 
                             array_udiff_assoc(PHP 5, PHP 7) array_udiff_assoc — Computes the difference of arrays with additional index check, compares data by a callback function Description
   array array_udiff_assoc
    ( array  $array1, array$array2[, array$...], callable$value_compare_func)Computes the difference of arrays with additional index check, compares data by a callback function. 
 Parameters
 
 Return Values
   array_udiff_assoc() returns an array
   containing all the values from  Examples
 Example #1 array_udiff_assoc() example 
<?phpThe above example will output: 
Array
(
    [0.1] => cr Object
        (
            [priv_member:private] => 9
        )
    [0.5] => cr Object
        (
            [priv_member:private] => 12
        )
    [0] => cr Object
        (
            [priv_member:private] => 23
        )
)
In our example above you see the "1" => new cr(4) pair is present in both arrays and thus it is not in the output from the function. See Also
 
 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |