$_POST and $_GET array data modification possible or not?
<p>I was confounded by a question whether $_POST and $_GET arrays 
     data modification is possible for more than one time as I tried to assign some value to $_POST for making the posted data sanitized from single and double quote and backslashes and then again assigned $_POST array the trimmed value of the $_POST array.</p>

<p>But what I found was astonishing as this only reflected the last assigned value to $_POST array not both of the operations.</p>

<p>I did this on latest version of PHP.</p>

<p>Some people say you can assign the data only once?.</p>

<p>Is it true.</p>

<p>What I did was this : </p>

<pre><code>foreach($_POST as $key=&gt;$value)
{
    $_POST[$key] = mysql_real_escape_string($value);
    $_POST[$key] = trim($value);
}
</code></pre>
