array_key_first
laravel-shift/factory-generator
Supported Versions: PHP 7 >= 7.3.0, PHP 8
Gets the first key of an array
<?php array_key_first
(array
$array
):
int
|
string
|
null