How to use PHP code in Javascript? Example
In this example, I will tell you how to use PHP code inside Javascript code.
1 2 3 4 |
<?php $courses = "I love t4tutorials.com"; ?> <script> alert("<?php echo $courses; ?>"); </script> |