title: How does headScript() view helper work?
body: <p>I'm using Zend_View_Helper_HeadScript to add JavaScript code inside the <code>&lt;head&gt;</code> tag.</p>
  
  <pre><code>$view-&gt;headScript()-&gt;appendScript($javascript);
  $view-&gt;headScript()-&gt;appendScript($javascript2);
  </code></pre>
  
  <p>This works fine, except that my code is full of <code>&lt;script&gt;</code> tags (one for each <code>appendScript call</code>). How to add <code>$javascript2</code> to the same <code>&lt;script&gt;</code> tag? I just want to have one <code>&lt;script&gt;</code> tag inside the <code>&lt;head&gt;</code>.</p>
  
  <p>What's the difference between <code>headScript</code> and <code>inlineScript</code>?</p>