April 2026
Intermediate
1009 pages
34h 15m
English
This section summarizes functions that filter elements out of an array or put the elements of the array in a different order in some way.
There are some interesting functions for searching. We present the most important ones here:
The array_key_exists(Index, Array) function determines whether an index is present in the array and returns a truth value as the result.
array_search(Value, Array, Exactly) searches the array for a value and returns the key or keys. If there are several, it returns an array. If the optional Exactly option is set to true, then the data type is also included in the search. Caution: as with in_array(), the search term is placed before the array itself!
array_keys(Array, Value, ...
Read now
Unlock full access