1
2
3
<?
// remove multiple whitespaces
$line1 = preg_replace("/\s{2,}/", " ", $line1);