Simple strtolower not working
<p>Im sure this is something obvious i'm missing but I have a string 'GB' that is stored as $str and is then echoed out using strtolower...</p>

<pre><code>$str = bp_member_profile_data('field=Country');
echo strtolower($str);
</code></pre>

<p>I am expecting to see 'gb' (lowercase) but the output is still 'GB' (uppercase)</p>

<p>What could I be doing wrong?</p>

<p>UPDATE
Turns out That the issue lied with bp_member_profile_data, this is a BuddyPress PHP function that automatically echos so it was ignoring the strtolower - Thanks to everybody for helping to narrow it down!</p>
