Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

console log in php

<?php 
function console_log($object){
    echo "<script>console.log(".json_encode(var_export($object, true)).");</script>";
}
console_log('wow!');

?>
 
PREVIOUS NEXT
Tagged: #console #log #php
ADD COMMENT
Topic
Name
4+9 =