FUnit::var_export PHP Метод

var_export() публичный статический Метод

uses var_export to get string representation of a value. This differs from the standard var_export by removing newlines and allowing optional truncation
public static var_export ( mixed $val, integer $maxlen = 50 ) : string
$val mixed the value to get as a string rep
$maxlen integer if > 0, truncate the string rep (default 50)
Результат string
    public static function var_export($val, $maxlen = 50)
    {
        $vex = var_export($val, true);
        if (is_string($val)) {
            $str_val = preg_replace("/[\\n]+/m", "\\n", $vex);
        }
        $str_val = preg_replace("/[\\s\\n\\r]+/m", "", $vex);
        return static::str_truncate($str_val, $maxlen);
    }