strtolower() 函数是 PHP 内置的字符串函数之一,用于将字符串转换为小写字母。
语法:
strtolower(string $string): string
参数:
$string:要转换为小写的字符串。返回值:
示例:
$str = "Hello World!";
echo strtolower($str); // 输出 "hello world!"
注意事项:
strtolower() 函数只能将 ASCII 字符串转换为小写字母,对于非 ASCII 字符串可能会产生不可预测的结果。mb_strtolower() 函数。Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站