新闻资讯

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻资讯列表

php strtolower函数的用法是什么,php str_repeat函数

发布时间:2024-02-28 15:05:13

php strtolower函数的用法是甚么

strtolower函数是一个PHP内置函数,用于将字符串中的所有字符转换为小写字母。其语法以下:

string strtolower ( string $string )

其中,$string是要转换为小写的字符串。

示例:

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