在PHP中,可以使用strtolower()函数将字符串转换为小写。下面是一个示例:
$str = "Hello World";
$lowercaseStr = strtolower($str);
echo $lowercaseStr; // 输出 "hello world"
在上面的示例中,我们使用strtolower()函数将字符串"Hello World"转换为小写,并将结果存储在$lowercaseStr变量中。然后,我们使用echo语句将转换后的字符串输出到浏览器上。
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站