Added $val = preg_replace('/[^,]""[^,]/','',$val);