lcfirst
将字符串的第一个字符设为小写
lcfirst() 函数把字符串中的首字符转换为小写。
strtolower() - 把字符串转换为小写strtoupper() - 把字符串转换为大写ucfirst() - 把字符串中的首字符转换为大写ucwords() - 把字符串中每个单词的首字符转换为大写把 "Hello" 的首字符转换为小写:
<?php
echo lcfirst("Hello world!");
?>
亲自试一试
lcfirst(string)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要转换的字符串。 |