protected static function restore_array(array &$arr, array &$original) {
        foreach ($arr as $key => $ignored) {
            $arr[$key] = $original[$key];
        }
    }
protected static function restore_array(array &$arr, array &$original) {
        foreach ($arr as $key => $ignored) {
            $arr[$key] = $original[$key];
        }
    }
protected static function restore_array ( array & $ arr , array & $ original ) { foreach ( $ arr as $ key => $ ignored ) { $ arr [ $ key ] = $ original [ $ key ] ; } }
Restore array contents keeping new keys.
@static
@param array $arr
@param array $original
@return void modifies $arr
Restore array contents keeping new keys .