← All docs

chop() — internals

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

chop() — internals

Where it lives

Lowering notes

  • Lowers trim()/ltrim()/rtrim()/chop() for default and explicit masks.

Runtime helpers

No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.

Signature summary

function chop(string $string, string $characters = ' \n\r\t\x0b\x0c\x00'): string

What the type checker enforces

  • Arity: takes 1–2 arguments (1 optional).

Eval interpreter (magician)

Cross-references