Contact: aviboots(AT)netvision.net.il
31,104 questions
40,777 answers
573 users
$s = "\nphp \n javascript nodejs \n c c++ python \n c#\n"; $s = trim(preg_replace('/\s\s+/', ' ', $s)); echo $s; /* run: php javascript nodejs c c++ python c# */