php中怎么将大写字母转换为小写字母

php中可以使用strtolower()函数将所有大写字母转换为小写字母。

strtolower() 函数把字符串转换为小写。

注释:该函数是二进制安全的。

语法:strtolower(string)

参数:string 必需。规定要转换的字符串。

示例:

<!DOCTYPE html>
<html>
<body>

<?php
echo strtolower("Hello WORLD.");
?>
  
</body>
</html>

运行结果如下:

php中怎么将大写字母转换为小写字母

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容