php lcfirst()函数怎么用?
php lcfirst()函数的作用把字符串中的首字符转换为小写。
基本语法:
lcfirst ( string)
参数:lcfirst()函数只接受一个必需参数string,此参数指定要转换的字符串。
返回值:返回已转换的字符串,即首字母小写的字符串。
下面通过示例来看看php lcfirst()函数的使用方法。
示例:
<?php echo lcfirst("Hello world!"); ?>
输出:
hello world!
以上就是php lcfirst函数怎么用的详细内容,更多请关注php中文网其它相关文章!
![php中文网最新课程二维码](/static/images/article_wechat2021.jpg?1111)
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论