array_key_first

PHP 7 >= 7.3.0, PHP 8
array_key_first - Gets the first key of an array

Example #1 Basic array_key_first Usage

Result: string(1) "a"
PHP Version:


Example #2 of array_key_first

PHP Version:


Function array_key_first:

Arrays Functions

Most used PHP functions