Are you first timer at Why not join us and start exchange your knowledge with everyone. Register today!

Sharing/Passing PHP variables to Javascript

0 votes
added Dec 18, 2017 in PHP by LC Marshal Second Warrant Officer (3,400 points)

  $state  = $item['state'];
  $area  = $item['area'];
  $developer = $item['developer_name'];

  var state = "<?php echo $state ?>"; 
  var area = "<?php echo $area ?>"; 
  var developer = "<?php echo $developer ?>"; 


Please log in or register to response this solution.