ucfirst() 函数把字符串中的首字符转换为大写。 相关函数: lcfirst() - 把字符串中的首字符转换为小写 ucwords() - 把字符串中每个单词的首字符转换为大写 strtoupper() - 把字符串转换为大写 strtolower() - 把字符串转换为小写