定义和用法 ucfirst() 函数把字符串中的首字符转换为大写 语法 ucfirst(string) 参数解析 参数描述string必需。规定要转换的字符串。 示例 <?php echo ucfirst("hello world!");?> 输出 Hello world! 转载于:https://blog.51cto.com/suyanzhu/1896243