<?php $txt = "Hello world!"; $x = 5; $y = 10.5; ?>
<script> var p1 = "success"; </script> <?php echo "<script>document.writeln(p1);</script>"; ?>
<?php /* In PHP, a variable starts with the $ sign, followed by the name of the variable: */ $txt = "Hello world!"; $x = 5; $y = 10.5; ?>
$varName = "Hello, World";