PHP String 函数
把每个单词的首字符转换为大写:
<?php echo ucwords("hello world"); ?>
ucwords() 函数把字符串中每个单词的首字符转换为大写。
ucwords(string)
©2020 IT自习室京ICP备20010815号