PHP
영문 단어의 첫번째 글자 대문자로 (영어 이름)
은둔한량
2013. 2. 19. 14:53
반응형
ucwords
string ucwords ( string str)
str의 각각의 단어의 첫문자가 알파벳이라면 그 글자를 대문자로 바꾼다.
예 1. ucwords() 예
$text = "mary had a little lamb and she loved it so."; $text = ucwords($text); // $text 는 : Mary Had A Little Lamb And She Loved It So. 이 된다.
반응형