合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
# PHP ucwords() 函数 ## 定义和用法 ucwords() 函数把字符串中每个单词的首字符转换为大写。 ### 语法 ``` ucwords(string) ``` | 参数 | 描述 | | --- | --- | | string | 必需。规定要转换的字符串。 | ## 例子 ``` <?php echo ucwords("hello world"); ?> ``` 输出: ``` Hello World ```