PHP strtolower関数:基本と活用例【文字列を小文字に】

strtolower関数はPHPの組み込み関数であり、文字列内のすべての文字を小文字に変換します。その構文は以下の通りです:

string strtolower ( string $string )

$stringは小文字に変換する必要がある文字列です。

例文:

$str = "Hello World!";
echo strtolower($str); // 输出 "hello world!"
bannerAds