Answers for "js file php code"

PHP
0

use php in javascript file

<script type="text/javascript">
	var myString = '<?php echo 1+1; ?>';
</script>
Posted by: Guest on August-02-2021
0

how to write php in script file

phpVars["value1"]
phpVars["value2"]
Posted by: Guest on October-17-2020

Browse Popular Code Answers by Language