array_key_exists()
function array_key_exists(string $key, array $array): bool
Checks if the given key or index exists in the array.
Parameters:
$key(string)$array(array)
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/array_key_exists.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_key_exists is implemented in the compiler, see the internals page.