modify price variable
<p>I'm trying to modify a variable from a form.
I want to get rid of any "," but keep the "." while changing it to "%2e"</p>

<pre><code>$price = '6,000.65';

//$price = preg_replace('.', '%2e', $price);
$price = urlencode($price);

echo $price;
</code></pre>
