31-07-2012, 03:06 PM
Array Functions
Array Functions.ppt (Size: 168.5 KB / Downloads: 34)
Array Change key case
The array_change_key_case() function returns an array with all array KEYS in lower case or upper case.
Array Count Values
array_count_values(array) returns an array, where the keys are the original array's values, and the values is the number of occurrences.
Array diffassoc
The array_diff_assoc(arr1, arr2,…) function compares two or more arrays with Key, and returns an array with the keys and values from the first array, only if they are not present in any of the other arrays.
Arrays key exists
The array_key_exists(key,arr ) function checks an array for a specified key, and returns true if the key exists and false is the key does not exist.