【函数分享】每日PHP函数分享(2021-1-23) 梦中程序员 2021-01-23 68 阅读1分钟 lcfirst () 使一个字符串的第一个字符小写 lcfirst ( string $str ) : string 参数描述 str必需。规定要转换的字符串。 返回值: 返回第一个字母小写的 str 字符串,如果是字母的话。 实例: echo lcfirst('Hello World'); //hello World echo lcfirst('HELLO WORLD'); //hELLO WORLD