src/DdvUtil/String/Conversion.php
public static function ucfirstByArray($array = array()){

      foreach ($array as $key => $value) {
          $keyt = self::ucfirst($key);
          if ($keyt!==$key){
              unset($array[$key]);
              $array[$keyt] = $value;
          }
      }
      return $array;
  }
public static function ucfirstByArray($array = array()){

      foreach ($array as $key => $value) {
          $keyt = self::ucfirst($key);
          if ($keyt!==$key){
              unset($array[$key]);
              $array[$keyt] = $value;
          }
      }
      return $array;
  }
把数组中所有的key的首字符转换为大写
@param array $array [数组]
@return array  [请求数组]