array_keys
PHP 4, PHP 5, PHP 7, PHP 8
array_keys - Return all the keys or a subset of the keys of an array
array_keys(
array$array ): array
arrayarray_keys
arrayarray
mixedsearch_value
boolstrictfalse
Parameters
- array
-
An array containing keys to return.
- search_value
-
If specified, then only keys containing this value are returned.
- strict
-
Determines if strict comparison (===) should be used during the search.
Return Values
Returns an array of all the keys in array.