array_key_first()
function array_key_first(array $array): mixed
Gets the first key of an array.
Parameters:
$array(array)
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): not available inside eval’d code.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_key_first is implemented in the compiler, see the internals page.