Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
javascript access php variable
isla
Programming language:
Javascript
2021-05-29 00:32:14
0
Q:
javascript access php variable
Paul Foster
Code:
Javascript
2021-02-08 02:07:08
//passing PHP variable to JavaScript var myJSVar = <?php echo json_encode($myPHPVar); ?>;
1
Tags
javascript
php
variable
script
var
Related
php variable as javascript function parameter in echo
how to get a variable from php to javascript
how to use javascript variable in php
javascript php variable
javascript variable store in php
how to use php variable in javascript file
send php variable to javascript
pass php variable to javascript
New to Communities?
Join the community