php lcfirst()函数怎么用?
php lcfirst()函数的作用把字符串中的首字符转换为小写。
基本语法:
lcfirst ( string)
参数:lcfirst()函数只接受一个必需参数string,此参数指定要转换的字符串。
返回值:返回已转换的字符串,即首字母小写的字符串。
下面通过示例来看看php lcfirst()函数的使用方法。
示例:
<?phpecho lcfirst("hello world!");?>
输出:
hello world!
以上就是php lcfirst函数怎么用的详细内容。
