print_r()
function print_r(mixed $value, bool $return = false): mixed
Prints human-readable information about a variable.
Parameters:
$value(mixed)$return(bool), defaultfalse, optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/print_r.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how print_r is implemented in the compiler, see the internals page.