Why does php insert backslash while replacing double quotes
<p>I'm wondering why php adds a backslash when i remove double quotes.</p>

<pre><code>&lt;input type="text" name="number" id="number" /&gt;
&lt;input type="button" name="button" id="button" value="Button" /&gt;
</code></pre>

<p>Say they user enters the value 5-1/2" and i'm passing it to a processing page via jquery's .get method.</p>

<pre><code>$('#button').click(function(){

    $.get('determine.php?number='+$('#number').val(),function(data){
     $('#response').html(data);
    });

});
</code></pre>

<p>Here is my processing page.</p>

<pre><code>determine.php

$number = $_GET['number'];

$number = str_replace(array('"', "'"), '', $number);

echo $number;

//echos 5-1/2\
</code></pre>

<p>Why is the backslash there?</p>
