public function applyMapping($params, $mapping)
    {
        $newParams = [];

        foreach ($params as $key => $value) {
            $newParams[$mapping[$key]] = $value;
        }

        return $newParams;
    }
public function applyMapping($params, $mapping)
    {
        $newParams = [];

        foreach ($params as $key => $value) {
            $newParams[$mapping[$key]] = $value;
        }

        return $newParams;
    }
public function applyMapping ( $ params , $ mapping ) { $ newParams = [ ] ; foreach ( $ params as $ key => $ value ) { $ newParams [ $ mapping [ $ key ] ] = $ value ; } return $ newParams ; }
Applies associative mapping to numbered columns.

@param array      $params
@param array|bool $mapping

@return array
Applies associative mapping to numbered columns .