Zmienna PHP JavaScript
<script type="text/javascript">
var php_var = "<?php echo $php_var; ?>";
</script>
Mobile Star
<script type="text/javascript">
var php_var = "<?php echo $php_var; ?>";
</script>
<?php echo "<script> autoFill(".$dropDown.", ".$emptyDropDown."); </script>"; ?>
// Most effective way to call a javascript function with parameter of PHP variable
echo '<input type="button" value="Button" onclick="return openEditor(\'' . $path_image . '\')">';