sprite 1 sprite 30
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.

range

Create an array containing a range of elements.

shuffle

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

sort

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