How to remove variable in img src tag?
<p>I have a sample code:</p>

<pre><code>$filename = 'http://thebox.vn/Uploaded/catmy/2013_04_23/couple_t2.jpg?maxwidth=480';
</code></pre>

<p>And I using this code to remove variable (maxwidth)</p>

<pre><code>echo preg_replace('/(\?)$/', '', $filename)
</code></pre>

<p>=> How to remove variable (maxwidth), how to fix it ?</p>
