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

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

lcfirst ( string $str ) : string

  

 

参数描述

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

 

返回值:

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

 

实例:

echo lcfirst('Hello World');

//hello World

 

echo lcfirst('HELLO WORLD');

//hELLO WORLD

  

posted @ 2021-01-23 08:47  梦中程序员  阅读(30)  评论(0)    收藏  举报