lcfirst () 使一个字符串的第一个字符小写
lcfirst ( string $str ) : string参数描述
str必需。规定要转换的字符串。
返回值:
返回第一个字母小写的 str 字符串,如果是字母的话。
echo lcfirst('Welcome to here');
//welcome to here
echo lcfirst('WELCOME TO HERE');
//wELCOME TO HERE由此衍生的类似函数:
ucfirst() – 把字符串中的首字符转换为大写。
ucwords() – 把字符串中每个单词的首字符转换为大写。
strtoupper() – 把字符串转换为大写。
strtolower() – 把字符串转换为小写。
