yii\helpers\BaseVarDumper::export PHP Method

export() public static method

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 export ( mixed $var ) : string
$var mixed the variable to be exported.
return string a string representation of the variable
    public static function export($var)
    {
        self::$_output = '';
        self::exportInternal($var, 0);
        return self::$_output;
    }