title: Assigining non-string PHP variables in JS
body: <p>I have latitude/lognitude variables that are not strings and I need to put them into JavaScript variables.  I currently try to do something like this which does not work:</p>
  
  <pre><code>    lat = &lt;?= $objkey-&gt;lat ?&gt;;
      lng = &lt;?= $objkey-&gt;lng ?&gt;;
  </code></pre>
  
  <p>But wrapping it in strings, breaks the maps functions when I use the lat/lng variables.</p>
  
  <p>What is the right way to go about this?</p>
  
  <p>Here is the URL where this is happening: <a href="http://www.comehike.com/outdoors/parks/trailhead.php" rel="nofollow">http://www.comehike.com/outdoors/parks/trailhead.php</a></p>