functions-online

Array

Execute and test PHP functions for array handling and manipulation.

array_search

Searches the array for a given value and returns the corresponding key if successful

array_splice

Remove a portion of the array and replace it with something else.

array_values

Return all the values of an array.

count

Count all elements in an array or properties in an object.

in_array

Checks if a value exists in an array.

krsort

Sort an array by key in reverse order

ksort

Sort an array by key

natcasesort

Sort an array using a case insensitive "natural order" algorithm

natsort

Sort an array using a "natural order" algorithm

range

Create an array containing a range of elements.

shuffle

This function shuffles (randomizes the order of the elements in) an array.

rsort

Sort an array in reverse order

sort

This function sorts an array. Elements will be arranged from lowest to highest when this function has completed.