mindfullsilence
11/15/2013 - 6:44 PM

Print anything to the screen.

Print anything to the screen.

/**
 * Echo Anything onto the page.
 *
 * @param mixed $msg
 */
function debug($msg)
{
	echo '<pre style="background-color: saddlebrown; padding: 2em; margin: 2em; box-sizing: border-box;">';
	echo '<code style="font-family: Menlo; font-weight: bold; color: mintcream; font-size: 12px;">';
	echo '<br>';
	print_r($msg);
	echo '<br>';
	echo '</code></pre>';
}