Answers for "run php code in console"

PHP
2

console php

//display message in console

<?php
	function console_log($msg) {
		echo '<script>' .
          'console.log("'.$msg .' ")</script>';
	}

	console_log("Hi there!");
?>
Posted by: Guest on October-06-2020
-1

execute php file from command line

php -f /path/to/your/file.php
Posted by: Guest on October-02-2020

Browse Popular Code Answers by Language