string ucfirst(string str) - 알파벳 문자열의 첫 글자를 대문자로 변환한다
string ucwords(string str) - 문자열 안의 각 단어의 알파벳 첫 글자를 대문자로 변환한다.
EX) $str = "what a wonderful world!";
$res1 = ucfirst($str);
echo $res1; //--> What a wonderful world!
$res2 = ucwords($str);
echo $res2; //--> What A Wonderful World!
string ucwords(string str) - 문자열 안의 각 단어의 알파벳 첫 글자를 대문자로 변환한다.
EX) $str = "what a wonderful world!";
$res1 = ucfirst($str);
echo $res1; //--> What a wonderful world!
$res2 = ucwords($str);
echo $res2; //--> What A Wonderful World!