PHP – array_slice() Function
The PHP array_slice() function returns selected parts of an array.
The PHP array_splice() function removes selected elements from an array and replaces it with new elements.
The PHP array_sum() function returns the sum of all the values in the array.
The PHP array_udiff() function compares the values of two or more arrays, and returns an array of entries from array1 not in the other array(s).
The PHP array_udiff_assoc() function compares the keys/values of two or more arrays, and returns an array of entries from array1 not in the other array(s).
The PHP array_udiff_uassoc() function compares the keys/values of two or more arrays, and returns the entries from array1 not in the other array(s).
The PHP array_uintersect() function compares the values of two or more arrays, and returns entries from array1 that exist in the other array(s).
The PHP array_uintersect_assoc() function compares the keys/values of two or more arrays, and returns entries from array1 that exist in the other array(s).
The PHP array_uintersect_uassoc() function compares the keys/values of two or more arrays, & returns entries from array1 that exist in the other array(s).
The PHP array_unique() function removes duplicate values (the first appearance will be kept) from an array.
The PHP array_unshift() function inserts new elements to the beginning of an array. Numeric keys will start at 0. String keys will remain the same.
The PHP array_values() function returns an array containing all the values of an array.
The PHP array_walk() function runs each array element in a user-defined function with the array’s keys and values as parameters in the function.
The PHP array_walk_recursive() function runs each array element in a user-defined function with the array’s keys and values as parameters in the function.
The PHP arsort() function sorts an associative array in descending order, according to the value.
The PHP asort() function sorts an associative array in ascending order, according to the value.
The PHP atan() function returns the arc tangent of arg as a numeric value between -Pi/2 and Pi/2 radians.
The PHP atan2() function returns the arc tangent of y/x, in radians, where x and y are the coordinates of a point (x,y).