← All docs
array_key_exists() — internals
Compiler internals for array_key_exists(): lowering path, type checks, and runtime helpers.
array_key_exists() — internals
Where it lives
- Signature:
src/builtins/array/array_key_exists.rs - Lowering:
src/codegen/lower_inst/builtins/arrays/key_exists.rs:22 (lower_array_key_exists) - Function symbol:
lower_array_key_exists()
Lowering notes
- Lowers
array_key_exists()for indexed arrays and associative arrays.
Runtime helpers
The following runtime helpers are referenced:
__rt_hash_get
Signature summary
function array_key_exists(string $key, array $array): bool
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/array_key_exists.rs(eval_builtin!) - Dispatch hooks:
direct,values