php lcfirst()函数怎样用?
php lcfirst()函数的作用把字符串中的首字符转换为小写。
基础语法:
lcfirst ( string)
参数:lcfirst()函数只接收一个必须参数string,此参数指定要转换的字符串。
返回值:返回已转换的字符串,即首字母小写的字符串。
下面经由过程示例来看看php lcfirst()函数的使用方法。
示例:
<?php echo lcfirst("Hello world!"); ?>
输出:
hello world!
以上就是php lcfirst函数怎样用的细致内容,更多请关注ki4网别的相干文章!