ucwords(string)
string 을 맨앞자만 대문자로 바꿔준다 .
lcfirst - http://php.net/manual/kr/function.lcfirst.php
두번째 단어 대문자로 처리
$foo = 'HelloWorld';
$foo = lcfirst($foo); // helloWorld
$bar = 'HELLO WORLD!';
$bar = lcfirst($bar); // hELLO WORLD!
$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!
'PHP' 카테고리의 다른 글
stdobject 배열 변환 (0) | 2016.05.20 |
---|---|
stdClass 접근하기 (0) | 2016.05.10 |
현재 날짜를 초단위로 처리 관련 특정시간 초단위 처리 (0) | 2016.04.18 |
시간 계산하는법 date_diff (0) | 2016.04.11 |
php 특정날짜 계산 (0) | 2016.04.02 |