ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# PHP ucwords() 函数 ## 定义和用法 ucwords() 函数把字符串中每个单词的首字符转换为大写。 ### 语法 ``` ucwords(string) ``` | 参数 | 描述 | | --- | --- | | string | 必需。规定要转换的字符串。 | ## 例子 ``` <?php echo ucwords("hello world"); ?> ``` 输出: ``` Hello World ```