【函数分享】每日PHP函数分享(2021-1-23)

时间:2021-01-25 11:06:24   收藏:0   阅读:0

lcfirst () 使一个字符串的第一个字符小写

lcfirst ( string $str ) : string

  

 

参数描述

    str必需。规定要转换的字符串。

 

返回值:

    返回第一个字母小写的 str 字符串,如果是字母的话。

 

实例:

echo lcfirst(‘Hello World‘);

//hello World

 

echo lcfirst(‘HELLO WORLD‘);

//hELLO WORLD

  

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!