【函数分享】每日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
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!