1、遍历循环处理
<?php
$str = "che_he_jia";
$arr = explode('_', $str);
$strs = '';
foreach($arr as $key => $val){
$strs .= ucfirst($val);
}
echo $strs;
?>
2、PHP函数处理
<?php
$foo = 'hello world!';
$foo = ucwords($foo); // Hello World!
echo $foo;
?>