lithium\analysis\Debugger::export()
Returns a parseable string representation of a variable.
Parameters
-
mixed
$var
The variable to export.
Returns
stringThe exported contents.
Source
public static function export($var) {
$export = var_export($var, true);
if (is_array($var)) {
$replace = [" (", " )", " ", " )", "=> \n\t"];
$with = ["(", ")", "\t", "\t)", "=> "];
$export = str_replace($replace, $with, $export);
}
return $export;
}