🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# PHP ucfirst() 函数 ## 定义和用法 ucfirst() 函数把字符串中的首字符转换为大写。 ### 语法 ``` ucfirst(string) ``` | 参数 | 描述 | | --- | --- | | string | 必需。规定要转换的字符串。 | ## 例子 ``` <?php echo ucfirst("hello world"); ?> ``` 输出: ``` Hello world ```