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