Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php console output

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

php print to console

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

php console print

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

echo count($a), "
";
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress get id from page title 
Php :: laravel hasMany with join 
Php :: php count 
Php :: cache an array 
Php :: laravel set appends 
Php :: Adding JavaScript to a Specific WordPress Post or Page Using Code in the Footer 
Php :: type casting in php 
Php :: call php function in js 
Php :: laravel generate unique db token 
Php :: SPA and keep some of the Laravel pages you need to have a route like this 
Php :: get user by meta wp 
Php :: php json decoding as string incorrectly 
Php :: Laravel eloquent restore soft delete 
Php :: file upload permission in php 
Php :: laravel npm run deve error mix 
Php :: how to show image from php 
Php :: loop iteration laravel 
Php :: in_array associative array php 
Php :: notify multiple users laravel 
Php :: check duplicate data in array php 
Php :: wordpress disable block styles 
Php :: instalar php 7.4 no ubuntu 
Php :: php - How do I calculate the percentage of a number? 
Php :: update profile method in laravel 
Php :: laravel activity log 
Php :: laravel test mail 
Php :: php decode json object 
Php :: laravel url download file 
Php :: php get item position in array 
Php :: wordpress get plugin list 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =