← All docs
explode() — internals
Compiler internals for explode(): lowering path, type checks, and runtime helpers.
explode() — internals
Where it lives
- Signature:
src/builtins/string/explode.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:168 (lower_explode) - Function symbol:
lower_explode()
Lowering notes
- Lowers
explode(delimiter, string)into the shared string-array splitter helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_explode__rt_sscanf
Signature summary
function explode(string $separator, string $string, int $limit = PHP_INT_MAX): array
What the type checker enforces
- Arity: takes 2–3 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/explode.rs(eval_builtin!) - Dispatch hooks:
direct,values