【函数功能】
该函数把指定字符串中每个单词的首字符转换为大写。
	【函数语法】
ucwords ($str) 
	【参数说明】
$str:必需,要转换的字符串。
	【演示程序】
<?php
  /**
   * ucwords ($str) 
   * **/
   $str = "hello i am php!";
   echo ucwords($str);
   echo "<br>";
   $str = "hello _i _am _php!";
   echo ucwords($str);
?>
	【输出结果】
Hello I Am Php!
Hello _i _am _php!
	【特别注意】
1.所谓单词,一般是按照空格、逗号分隔的字符串。
2.PHP 版本:4+。
	【原版定义】
/**
 * Uppercase the first character of each word in a string
 * @link http://www.php.net/manual/en/function.ucwords.php
 * @param str string <p>
 * The input string.
 * </p>
 * @return string the modified string.
 */
转载请注明出处:php1234.cn ,原文地址:http://www.php1234.cn/a/functions/2016/0929/84.html