PHP array_udiff_assoc() functionThe array_udiff_assoc( ) function is an inbuilt function of PHP. The array_udiff_assoc( ) function use a built-in function to compare the keys and values of two or more arrays, and returns the differences. This function was introduced in PHP 5.0. SyntaxParameters
Return ValuesThe array_udiff_assoc( ) function returns an array containing the entries from array1 that are not present in any of the other arrays. Example 1Output: Array ( [b] =>hp [c] =>asus ) Example 2Output: Array ( [b] => cricket [c] => football ) Example 3Output: Array ( [b] =>sehwag [r] =>virat ) Example 4Output: Array ( [b] => java [c] => python )
Next TopicPHP Array Functions
|