1. $str = 'get name';
    2. echo '输出结果为:<br/>';
    3. $str =ucwords($str);
    4. echo strtr($str, array(' '=>'')) ;