title: How to concatenate PHP variable with JavaScript Variable? Is it possible?
body: <p>Java Script Code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(function () {
           var  seatNo = 2;                                                       
           str.push('&lt;a title="' + seatNo + '"&gt;' + '&lt;?php echo $thisPacket["seat"]; ?&gt;'&lt;/a&gt;');
           }); 
  &lt;/script&gt;
  </code></pre>
  
  <p>I want to concatenate between <code>$thisPacket["seat"]</code> with java Script variable <code>seatNo.</code><br>
  Just like php concate. example: <code>$i = 1; $thisPacket["seat".$i]</code>;</p>