Function __global->array_keys
Definitions
sources_custom/phpstub.php
- Return all the keys of an array.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $input | array | No | No | required parameter | N/A | N/A | Input array |
| $search_value | ?mixed | No | No | Null | N/A | N/A | Only find keys with this value (null: no such filter) |
Returns
- The keys of the array
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Return all the keys of an array.
*
* @param array $input Input array
* @param ?mixed $search_value Only find keys with this value (null: no such filter)
* @return array The keys of the array
*/
function array_keys(array $input, $search_value = null) : array
* Return all the keys of an array.
*
* @param array $input Input array
* @param ?mixed $search_value Only find keys with this value (null: no such filter)
* @return array The keys of the array
*/
function array_keys(array $input, $search_value = null) : array

