← All docs

print_r()

Prints human-readable information about a variable.

function print_r(mixed $value, bool $return = false): mixed

Prints human-readable information about a variable.

Parameters:

  • $value (mixed)
  • $return (bool), default false, optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how print_r is implemented in the compiler, see the internals page.