src/Util/ArrayUtils.php
public static function prefixArrayKeys($array, $prefix) {

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

        return $prefixedArray;

    }
public static function prefixArrayKeys($array, $prefix) {

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

        return $prefixedArray;

    }
public static function prefixArrayKeys ( $ array , $ prefix ) { $ prefixedArray = array ( ) ; foreach ( $ array as $ key => $ value ) { $ prefixedArray [ $ prefix . $ key ] = $ value ; } return $ prefixedArray ; }
Take an associative array as input and return a new array with all the original keys prefixed by the
passed prefix.

@param array $array
@param string $prefix

@return array
Take an associative array as input and return a new array with all the original keys prefixed by the passed prefix .