String 関数
PHP Manual

strtolower

(PHP 4, PHP 5)

strtolower文字列を小文字にする

説明

string strtolower ( string $str )

string のアルファベット部分をすべて小文字にして返します。

「アルファベット部分」は現在のロケールにより決定されます。 つまり、たとえばデフォルトの「C」ロケールである場合は、 A ウムラウト (Ä) のような文字は変換されません。

パラメータ

str

入力文字列。

返り値

小文字に変換した文字列を返します。

例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 を返します
?>

注意

注意: この関数はバイナリデータに対応しています。

参考


String 関数
PHP Manual