Answers for "get php variable in a javascript file"

PHP
6

javascript access php variable

//passing PHP variable to JavaScript
var myJSVar = <?php echo json_encode($myPHPVar); ?>;
Posted by: Guest on August-05-2019
0

how to use php variable in javascript file

alert("color: " + color);
Posted by: Guest on October-17-2020

Code answers related to "get php variable in a javascript file"

Browse Popular Code Answers by Language