<?php $string = ' Test1,One line Test2,"Two lines Hello" Test3,One line '; echo preg_replace_callback('~"[^"]*"~', function($m) { return preg_replace('~\R+~', '', $m[0]); }, $string);
You have javascript disabled. You will not be able to edit any code.