var_representation

PECL var_representation >= 0.1.0
var_representation - Returns a short, readable, parsable string representation of a variable
Manual
Code Examples

var_representation( mixed$value, [int$flags = 0] ): string

var_representation (from the var_representation PECL) returns a string with structured information about the given variable. It is similar to var_export with differences in indentation, string escaping, and array representations.

Parameters

value

The variable to generate a representation of.

flags

Bitmask consisting of VAR_REPRESENTATION_SINGLE_LINE, VAR_REPRESENTATION_UNESCAPED. The behaviour of these constants is described on the var_representation constants page.

Return Values

Returns the variable representation.

Related Functions

Example of var_representation

Show all examples for var_representation

PHP Version:


Function var_representation:

var_representation Functions

Most used PHP functions