title: Is it okay to use PHP inside a jQuery script?
body: <p>For example:</p>
  
  <pre><code>$(document).ready(function(){
      $('.selector').click(function(){
          &lt;?php
          // php code goes here
          ?&gt;
      });
  });
  </code></pre>
  
  <p>Will this cause issues or slow down the page? Is this bad practice? Is there anything important that I should know related to this?</p>
  
  <p>Thanks!</p>