strtolower

(PHP 3, PHP 4 )

strtolower -- 문자열을 소문자로 만든다.

설명

string strtolower ( string str)

string의 모든 알파벳을 소문자로 변환한 문자열을 반환한다.

'알파벳'이라 함은 현재 로케일에 의 해 정해진다. 이는 즉 기본적으로 "C" 로케일에서 umlaut-A (© 같은 문자는 바뀌지 않음을 의미한다.

예 1. strtolower()

$str = "Mary Had A Little Lamb and She LOVED It So";

$str = strtolower($str);	

print $str; #  mary had a little lamb and she loved it so 를 출력한다.

strtoupper() 그리고 ucfirst()를 참고하라.