php如何将字符串转化为小写

703
2021/3/20 13:29:32
栏目: 编程语言
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

php如何将字符串转化为小写

在php中使用strtolower()函数将字符串转化为小写,具体方法如下:

strtolower()函数作用:

php中strtolower()函数的作用是用于将字符串转换为小写。

strtolower()函数语法:

strtolower(string)

参数:

string:指定字符串。

strtolower()函数使用方法:

echo strtolower("Hello WORLD!");

输出结果为:

hello world!


辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读: php implode函数怎么使用