public static function addEachKey(array $array, $prefix): array
    {
        $result = [];

        foreach ($array as $key => $item) {
            $result[$prefix . $key] = $item;
        }

        return $result;
    }
public static function addEachKey(array $array, $prefix): array
    {
        $result = [];

        foreach ($array as $key => $item) {
            $result[$prefix . $key] = $item;
        }

        return $result;
    }
public static function addEachKey ( array $ array , $ prefix ) : array { $ result = [ ] ; foreach ( $ array as $ key => $ item ) { $ result [ $ prefix . $ key ] = $ item ; } return $ result ; }
Add some prefix to each key

@param array  $array
@param string $prefix
@return array
Add some prefix to each key