Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

console.log in php

/*
console.log in php
*/

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

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