Help with PHP echo syntax with JS quotes
<p>Here's a snippet of my echo command:</p>

<pre><code>echo 'onclick="derp(',$url,$image_dir,$file,')'
</code></pre>

<p>It currently outputs something like this:</p>

<pre><code>onclick="derp(foobar)
</code></pre>

<p>But, I want it to output something like this:</p>

<pre><code>onclick="derp('foobar')
</code></pre>

<p>Since PHP freaks out when you use quotes, I really don't know what to do.</p>
