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 = array(" (", " )", " ", " )", "=> \n\t");
$with = array("(", ")", "\t", "\t)", "=> ");
$export = str_replace($replace, $with, $export);
}
return $export;
}