src/DdvUtil/String/Conversion.php
public static function ucfirstByIndexArray ($array = array()){
    if (is_array($array)&&Compare::isIndexArray($array)) {
      foreach ($array as $key => $value) {
        $array[$key] = self::ucfirstByIndexArray($value);
      }
      return $array;
    }else{
      return self::ucfirstByArray($array);
    }
  }
public static function ucfirstByIndexArray ($array = array()){
    if (is_array($array)&&Compare::isIndexArray($array)) {
      foreach ($array as $key => $value) {
        $array[$key] = self::ucfirstByIndexArray($value);
      }
      return $array;
    }else{
      return self::ucfirstByArray($array);
    }
  }
把数组中所有key的首字符转换为大写
@param array $array [数组]
@return array  [请求数组]