I am sure this is something obvious, I went missing, but I have the string "GB" which is stored as $ str and then called with strtolower ...
$str = bp_member_profile_data('field=Country'); echo strtolower($str);
I expect to see "gb" (lowercase), but the output is still "GB" (uppercase)
What can i do wrong?
UPDATE It turns out that the problem is related to bp_member_profile_data, it is a PHP BuddyPress function that automatically echoes, so it ignores strtolower - Thanks to everyone who helps narrow it down!
php
fightstarr20
source share