0 votes
86 views
asked in HTML by (1.4k points)
edited by

I want to use php variable in java script..

i need a sample code for that

1 Answer

0 votes
answered by

use this sample....

 

<script>
  var Var = <?php echo json_encode($phpVar); ?>;
</script>

Categories

...