PHP array_keys() Function is used to get keys from array. PHP array_keys() function is PHP built-in function.
Syntax :
array_keys(array $array, mixed $search, bool $strict = false);
Parameter,
$array : Required. It is input array.
$search : Optional. It is value to find keys which containing this value.
$strict : Optional. Default value is false. If true, checks identical type of the value.
Return : It returns array containing keys from input array.
Let's see below example to understand php array_keys() Function in details.
Comments