PHP String in Array Only Returns First Character
<p>For the next week, I'm stuck with a sadly very slow 1-bar EDGE internet connection, so forgive me if I didn't spend quite enough time researching this one, but I just set up a local server for testing code that I would normally test over the internet, and it doesn't seem to be working the same way on my local LAMP install.</p>

<p>The issue is, when I do this:</p>

<pre><code>echo strtolower($_REQUEST['page']);
</code></pre>

<p>the result is this:</p>

<pre><code>files
</code></pre>

<p>However, when I do this:</p>

<pre><code>$page['name'] = strtolower($_REQUEST['page']);
echo $page['name'];
</code></pre>

<p>the result is this:</p>

<pre><code>f
</code></pre>

<p>No, that's not a typo, it consistently returns only the first letter of the string. Doing a var_dump($page) will result in string(5) "files", but doing a var_dump($page['name']) will result in string(1) "f". I'm using PHP 5.2.1.</p>

<p>What is going on here?</p>

<p>Thanks!</p>

<p>Ari</p>
