PHP: small issue with str_replace
<p>I need to do array_key_exists with a modified string, however, I am getting a slight issue before.</p>

<p>The following illustrates it:</p>

<pre><code>$loggers = array('StackOverflow' =&gt; 'Stack Overflow');
$logger_name = str_replace(' ', '', $header['fromaddress']); //Remove space
echo $logger_name;
echo $loggers[$logger_name];
echo $loggers['StackOverflow'] . '&lt;br/&gt;';
</code></pre>

<p>The following is the output:</p>

<pre><code>StackOverflow  //echo $logger_name
Notice: Undefined index: StackOverflow in C:\... on line x //looks like not found using $logger_name
Stack Overflow //I can find it directly
</code></pre>

<p>More edits:</p>

<p>Looks like the problem is that the first output, even though it says 'StackOverflow' it has a length of 35 when using the function strlen($logger_name)... I am not sure why, and if there is any way to convert this to a correct string?</p>
