src/Core/Application.php
public static function oneDimensionalToAssociativeArray(array $oneDimensional)
    {
        $result = array();
        while ($p = array_shift($oneDimensional)) {
            $result[$p] = array_shift($oneDimensional);
        }

        return $result;
    }
public static function oneDimensionalToAssociativeArray(array $oneDimensional)
    {
        $result = array();
        while ($p = array_shift($oneDimensional)) {
            $result[$p] = array_shift($oneDimensional);
        }

        return $result;
    }
一维数组按顺序转换为关联数组

@param array $oneDimensional
@return array