php lcfirst()函数怎么用?
php lcfirst()函数的作用把字符串中的首字符转换为小写。
基本语法:
lcfirst ( string)
参数: lcfirst()函数只接受一个必需参数string,此参数指定要转换的字符串。
返回值: 返回已转换的字符串,即首字母小写的字符串。
下面通过示例来看看php lcfirst()函数的使用方法。
示例:
<?php
echo lcfirst("Hello world!");
?>输出:
hello world!
以上就是php lcfirst函数怎么用的详细内容,更多请关注Gxl网其它相关文章!
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did60881