src/VarDumper.php
/**
	 * Dump variable into printable string
	 *
	 * @param mixed $var
	 * @return string
	 */
Dump variable into printable string
@param mixed $var
@return string
Dump variable into printable string @param mixed $var @return string
public static function dump($var): string
	{
		if (is_array($var) or is_object($var)) {
			return print_r($var, true);
		}
		else {
			ob_start();
			var_dump($var);
			return ob_get_clean();
		}
	}
public static function dump ( $ var ) : string { if ( is_array ( $ var ) or is_object ( $ var ) ) { return print_r ( $ var , true ) ; } else { ob_start ( ) ; var_dump ( $ var ) ; return ob_get_clean ( ) ; } }
Dump variable into printable string
 @param mixed $var
 @return string
Dump variable into printable string @param mixed $var @return string