您现在的位置是:首页 > PHP函数

李清波 2021-06-17 PHP函数 1825 复制当前网址

ucwords



PHP ucwords() 函数

定义和用法

ucwords() 函数把字符串中每个单词的首字符转换为大写。


语法

ucwords(string)


参数描述
string必需。规定要转换的字符串。


例子

<?php
echo ucwords("hello world");
?>

输出:

Hello World


文章来源:http://liqingbo.com/blog-887.html

上一篇:vfprintf

下一篇:ucfirst

评论