title: call a php variable in createmarker function
body: <p>I'm parsing with <code>php</code> an <code>xml</code> file and i'm trying to put a marker in every <code>$item</code>.<br>
  The  error i'm getting is : <strong>'Uncaught SyntaxError: Unexpected string'</strong> in these lines</p>
  
  <pre><code>    function createMarker( '&lt;?php echo $item['temp']; ?&gt;',latlng,cold ) {
  var marker = createMarker( '&lt;?php echo $item['temp']; ?&gt;',latlng,cold );
  </code></pre>
  
  <p>Here is my code </p>
  
  <pre><code>    function initialize() {
        var mapOptions = {
          zoom: 6,
          center: new google.maps.LatLng( 38.822590,24.653320 )
        };
        var map = new google.maps.Map(document.getElementById('map-canvas'),mapOptions);
              &lt;?php foreach ( $item_array as $item ) : ?&gt;
              var latlng = new google.maps.LatLng(parseFloat(&lt;?php echo $item['glat']; ?&gt;),
                                                  parseFloat(&lt;?php echo $item['glon']; ?&gt;));
              if ( '&lt;?php echo $item["temp"] ?&gt;' &gt;= "18 °C" ) {
                  alert('&lt;?php  echo $item["temp"]; ?&gt;');
                   var marker = createMarker( '&lt;?php echo $item['temp']; ?&gt;',latlng,cold );
              }
              &lt;?php endforeach; ?&gt;
  
              var cold  = 'weather_icons/pagetos2.png';
              function createMarker( '&lt;?php echo $item['temp']; ?&gt;',latlng,cold ) {
                  var marker = new google.maps.Marker({
                  position: latlng,
                  map: map,
                  icon: cold
                  });
                  return marker;
              }
      }
      google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>
  
  <p>Any ideas how i'm gonna have a succesfull call in createMarker function?</p>