← All docs

explode() — internals

Compiler internals for explode(): lowering path, type checks, and runtime helpers.

explode() — internals

Where it lives

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)

Cross-references