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