I have a PHP page like this:
<?
... Some PHP code here ...
?>
<html>
<head>
<script>
... Some JavaScript code here ...
<?= $someVariable ?>
... Some more JavaScript code here ...
</script>
</head>
<body>
</body>
</html>
The thing is that the code:
<?= $someVariable ?>
Appears unchanged in the resulting HTML: its not executed or rendered. However, the initial PHP section executes normally (I verified this fact by adding "echo" calls in the first PHP block).