strtolower

(PHP 3, PHP 4 )

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() も参照下さい。