PHP array diff_ukey() functionThe array_diff_ukey() is an inbuilt function in PHP. The array_diff_ukey() function compares the keys of two or more arrays with a user-defined function, and returns an array that contains the entries from array1 that are not present in array2 or array3, etc. This function was introduced in PHP 5.1. Syntax
Return TypeIt returns an array containing all the entries from array1 that are not present in any of the other arrays. Example 1Output: Array( [c] => 3 [j] => phptpoint.com ) Example 2Output: Array ( [c] => cat ) Example 3Output: Array( [c] => php ) Example 4Output: Array( [z] => football )
Next TopicPHP Array Functions
|