小白教程
所有教程
关于
Search
172.70.178.138
172.70.178.138
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func string ucwords”的源代码
本页内容
上一节:
Func_string_ucfirst
下一节:
Func_string_vfprintf
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:ucwords()}}[[分类:PHP字符串函数参考手册|96]] = PHP ucwords() 函数 = [[:分类:PHP字符串函数参考手册]] 把每个单词的首字符转换为大写: <sample title="" desc="" lang="php" hererun="1"> <?php echo ucwords("hello world"); ?> </sample> == 定义和用法 == ucwords() 函数把字符串中每个单词的首字符转换为大写。 '''注释:'''该函数是二进制安全的。 相关函数: * [[func string ucfirst|ucfirst()]] - 把字符串中的首字符转换为大写 * [[func string lcfirst|lcfirst()]] - 把字符串中的首字符转换为小写 * [[func string strtoupper|strtoupper()]] - 把字符串转换为大写 * [[func string strtolower|strtolower()]] - 把字符串转换为小写 == 语法 == <pre> ucwords(string) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | string | 必需。规定要转换的字符串。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 返回已转换的字符串。 |- | PHP 版本: | 4+ |} [[:分类:PHP字符串函数参考手册]]
返回至“
Func string ucwords
”。
上一节:
Func_string_ucfirst
下一节:
Func_string_vfprintf