【函数分享】每日PHP函数分享(2021-1-22)
时间:2021-01-22 12:26:13
收藏:0
阅读:0
ucwords () 函数把字符串中每个单词的首字符转换为大写。
ucwords ( string $str ) : string
参数描述
str必需。规定要转换的字符串。
返回值:
返回把字符串中每个单词的首字符转换为大写。
实例:
echo ucwords("hello world!"); // Hello World!
评论(0)