PHP将字符串首字母大小写转换的实例 每个单词的首字母转换为大写:ucwords()<?php$foo='helloworld!';$foo=ucwords($foo);//HelloWorld!$bar=' 字符串字母大小写转换