var chaine=<?php echo $variable?>
<?php $variable1 ?>
<script type="text/javascript"> var var1<?= $variable1 ?>; </script>