Just a quick question on a function to tidy up text - I can't seem to work out whether my function is incorrect or the way i'm trying to use it is correct:
Code: Select all
function tidytext($textstring)
{
$textstring = ucfirst(strtolower($textstring));
return $textstring;
} Code: Select all
$text1='iAMbadlyforMATTED';
tidytext($text1);
Echo $text1;Any ideas why this won't work? Cheers in advance.