classes/Input/ModelValidator.php
public function nestArray($prefix, $array)
    {
        $data = [];
        foreach($array as $key => $value) {
            array_set($data, $prefix.$key, $value);
        }
        return $data;
    }
public function nestArray($prefix, $array)
    {
        $data = [];
        foreach($array as $key => $value) {
            array_set($data, $prefix.$key, $value);
        }
        return $data;
    }
public function nestArray ( $ prefix , $ array ) { $ data = [ ] ; foreach ( $ array as $ key => $ value ) { array_set ( $ data , $ prefix . $ key , $ value ) ; } return $ data ; }
Nest an array at another depth using the prefix

@param  string $prefix
@param  array  $array
@return array
Nest an array at another depth using the prefix