title: How do you pass in a PHP variable into an inline javascript function?
body: <pre><code>&lt;div id="test" onclick="someFunction('&lt;?=$some_id[1]?&gt;', this);"&gt;&lt;span &gt;&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm attempting to pass in a PHP variable into an inline javascript function; however when this function executes onclick, it throws the error (Firebug console):</p>
  
  <pre><code>SyntaxError: unterminated string literal
  
  someFunction('
  </code></pre>