title: Call jQuery function from PHP
body: <p>How do I call a jQuery function from PHP?</p>
  
  <pre><code>&lt;?php
  if ($error == 1) {
  ?&gt;
      &lt;script type="text/javascript"&gt;
          error('1');
      &lt;/script&gt;
  &lt;?
  }
  ?&gt;
  </code></pre>
  
  <p>It doesn´t work.</p>