admin

admin

PHP array_values() Function

The array_values() function is used to fetch all the values from an array. Tip: The returned array will have numeric keys, starting at 0 and increase by 1. Returns an array containing all the values of an array Parameter Description…

PHP array_unshift() Function

The array_unshift() is used to add one or more elements to the beginning of an array. Tip: You can add one value, or as many as you like. Note: Numeric keys will start at 0 and increase by 1. String…

PHP array_unique() Function

The array_unique() is used to remove duplicate values from an array. Note: The keys are preserved. array_unique() sorts the values treated as a string at first, then will keep the first key encountered for every value, and ignore all following…

PHP array_uintersect_uassoc() Function

The array_uintersect_uassoc() function compares the keys and values of two or more arrays, and returns the matches. Note: This function uses two user-defined functions for comparison; the key is used in the first function and the value is used in…

PHP array_uintersect_assoc() Function

array_uintersect_assoc() Function used for Compare the keys and values of two arrays and return the matches. Note: This function uses a built-in function to compare the keys, and a user-defined function to compare the values! Returns an array containing the…

PHP array_uintersect() Function

The array_uintersect() function compares two or more arrays, in a user-made function, and returns an array containing the elements from the first array, if the user-made function allows it. The user-made function compares array values, and returns a numeric value,…

PHP array_udiff_uassoc() Function

array_udiff_uassoc() Function used for Compare the keys and values of two arrays and return the differences. Note: This function uses two user-defined functions for comparison; the key is used in the first function and the value is used in the…

PHP array_udiff_assoc() Function

The array_udiff() function use a built-in function to compare the keys and values of two or more arrays, and returns the differences. Note: This function uses a built-in function to compare the keys, and a user-defined function to compare the…

PHP array_udiff() Function

The array_udiff() function compares the values of two or more, and returns the differences. Note: This function uses a user-defined function to compare the values! Returns an array containing the entries from array1 that are not present in any of…

PHP array_sum() Function

It calculates the sum of values in an array and returns the sum of values in an array as an integer or float. PHP versions prior to 4.2.1 modified the passed array itself and converted strings to numbers (which often…