strtolower
(PHP 3, PHP 4 , PHP 5)
strtolower -- 文字列を小文字にする
説明
string
strtolower ( string str)
string のアルファベット部分を
すべて小文字にして返します。
「アルファベット部分」は現在のロケールにより決定されます。
このため、たとえばデフォルトの "C" ロケールである場合は、
ウムラウト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(),
ucwords()も参照下さい。