Forum und email

strtolower

(PHP 4, PHP 5)

strtolower — 문자열을 소문자로 만듭니다.

설명

string strtolower ( string $str )

string 의 모든 알파벳을 소문자로 바꾼 문자열을 반환합니다.

'알파벳'은 현재 로케일에 의해 정해집니다. 즉, 기본값인 "C" 로케일에서는 umlaut-A (Ä) 등의 문자는 변환하지 않습니다.

Example#1 strtolower() 예제

<?php
$str 
"Mary Had A Little Lamb and She LOVED It So";
$str strtolower($str);    
echo 
$str// mary had a little lamb and she loved it so 를 출력합니다.
?>

참고: strtoupper(), ucfirst(), ucwords(), mb_strtolower().