private function leaveOnlyCurrent(array $row, $target)
    {
        $result = array();

        foreach ($row as $column => $value) {
            if ($column != $target) {
                $result[$column] = $value;
            }
        }

        return $result;
    }
private function leaveOnlyCurrent(array $row, $target)
    {
        $result = array();

        foreach ($row as $column => $value) {
            if ($column != $target) {
                $result[$column] = $value;
            }
        }

        return $result;
    }
private function leaveOnlyCurrent ( array $ row , $ target ) { $ result = array ( ) ; foreach ( $ row as $ column => $ value ) { if ( $ column != $ target ) { $ result [ $ column ] = $ value ; } } return $ result ; }
Removes all columns leaving only target one

@param array $row Current row
@param string $target Current column name
@return array
Removes all columns leaving only target one