helpers\BaseVarDumper export()

export() public static method

Exports a variable as a string representation.

The string is a valid PHP expression that can be evaluated by PHP parser and the evaluation result will give back the variable value.

This method is similar to var_export(). The main difference is that it generates more compact string representation using short array syntax.

It also handles objects by using the PHP functions serialize() and unserialize().

PHP 5.4 or above is required to parse the exported value.

public static string export ( $var )
$var mixed

The variable to be exported.

return string

A string representation of the variable

doc_Yii
2016-10-30 17:05:35
Comments
Leave a Comment

Please login to continue.