PHP – array_splice() Function
The PHP array_splice() function removes selected elements from an array and replaces it with new elements.
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 as keyword is used by the foreach loop to establish which variables contain the key and value of an element.
The PHP asort() function sorts an associative array in ascending order, according to the value.
The PHP basename() function returns the filename from a path.
The PHP break keyword is used to break out of for loops, foreach loops, while loops, do… while loops and switch conditions.
The PHP cal_days_in_month() function returns the number of days in a month for a specified year and calendar.
The PHP cal_from_jd() function converts a Julian Day Count into a date of a specified calendar.
Thanks for your support!
All are affiliate links. Thank you for your support!