Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php console log

// Assuming you are wishing to log to the JS Console...

<?php
	function consoleLog($msg) {
		echo '<script type="text/javascript">' .
          'console.log(' . $msg . ');</script>';
	}

	consoleLog('Hello, console!');
?>
 
PREVIOUS NEXT
Tagged: #php #console #log
ADD COMMENT
Topic
Name
9+8 =