lithium\analysis\Debugger::export()

public static method

Returns a parseable string representation of a variable.

Parameters

  • mixed $var

    The variable to export.

Returns

string

The 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;
	}