ucwords - 语法
ucwords(string)
它用于将字符串的第一个字符转换为每个字符串的大写字母
| Sr.No | 参数 & Description |
|---|---|
| 1 |
string 它用于指定要转换的字符串 |
ucwords - 返回值
它返回修改后的字符串
ucwords - 示例
<?php echo ucwords("tutorials point"); ?>
这将产生以下输出-
Tutorials Point
ucwords(string)
它用于将字符串的第一个字符转换为每个字符串的大写字母
| Sr.No | 参数 & Description |
|---|---|
| 1 |
string 它用于指定要转换的字符串 |
它返回修改后的字符串
<?php echo ucwords("tutorials point"); ?>
这将产生以下输出-
Tutorials Point