Php Console Print

[Solved] Php Console Print | Php - Code Explorer | yomemimo.com
Question : php console log

Answered by : kaotik

// 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!');
?>

Source : | Last Update : Sat, 14 Mar 20

Question : php console output

Answered by : asraful-islam

<?php $message = "Thanks.."; echo "<script>console.log('".$message."');</script>";
?>
Output: Thanks..

Source : | Last Update : Wed, 04 May 22

Question : php console log

Answered by : oscar-capraro

echo("<script type='text/javascript'> console.log($msg);</script>");

Source : | Last Update : Thu, 25 Feb 21

Question : php print to console

Answered by : upset-unicorn-kz6dvf7qou74

<script> console.log(<?= json_encode($foo); ?>);
</script>

Source : https://stackoverflow.com/questions/4323411/how-can-i-write-to-the-console-in-php | Last Update : Sat, 13 Jun 20

Question : php console print

Answered by : shiny-skylark-nk9jke9f432u

$a = array( null => 'a', true => 'b', false => 'c', 0 => 'd', 1 => 'e', '' => 'f'
);
echo count($a), "\n";

Source : | Last Update : Sat, 17 Oct 20

Answers related to php console print

Code Explorer Popular Question For Php