sscanf()
function sscanf(string $string, string $format, ...$vars): array
Parses a string according to a format.
Parameters:
$string(string)$format(string)...$vars— variadic: collects excess arguments into$vars.
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/formatting/sscanf.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how sscanf is implemented in the compiler, see the internals page.