← All docs

var_export()

Implemented by the compiler-injected var_export prelude.

var_export()

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

Implemented by the compiler-injected var_export prelude.

Parameters:

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

Returns: mixed

Availability

  • Compiled (AOT): supported through the compiler-injected var_export prelude.
  • eval() (magician interpreter): not available inside eval’d code.

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

Internals

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