$_REQUEST is replacing . with _
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/68651/can-i-get-php-to-stop-replacing-characters-in-get-or-post-arrays">can I get PHP to stop replacing ‘.’ characters in $_GET or $_POST arrays?</a>  </p>
</blockquote>



<p>So I am writing a simple long polling test application and in an effort to weed out all bugs I just went straight to the processing page in the browser and pre'd out all the content to see what's going on and here's what I've come up with... I go to url... </p>

<pre><code>localhost/long_polling/poll.php?user.user1=logged_in&amp;user.user2=logged_out&amp;user.user3=logged_out
</code></pre>

<p>the first line of my php code in poll.php (for testing) is </p>

<pre><code>echo "&lt;pre&gt;";
print_r($_REQUEST);
echo "&lt;/pre&gt;";
</code></pre>

<p>what that outputs is</p>

<pre><code>Array
    (
    [user_user1] =&gt; logged_in
    [user_user2] =&gt; logged_out
    [user_user3] =&gt; logged_out
    )
</code></pre>

<p>Does anyone have any idea why it is replacing the "."'s in the usernames with "_"? All of my usernames in the database are firstname.lastname so this whole thing is failing. If this is just default php behavior, though TERRIBLE, is there a better solution than using something like...</p>

<pre><code>foreach($_REQUEST as $key =&gt; $value) {
    $statuses[str_replace('_', '.', $key)] = $value;
}
</code></pre>

<p>I just don't like that, because what if something uses this later and actually has the "_" in it.</p>

<p>Thank you for the help in advance</p>
