Contact: aviboots(AT)netvision.net.il
39,859 questions
51,780 answers
573 users
$s = "php \r\n javascript nodejs \r\n c \t\t c++ python \r\n c#\n"; $s = str_replace(["\n","\r","\t"], "", $s); echo $s; /* run: php javascript nodejs c c++ python c# */
$s = "php \r\n javascript nodejs \r\n c \t\t c++ python \r\n c#\n"; $s = preg_replace('/\s+/', ' ', $s); echo $s; /* run: php javascript nodejs c c++ python c# */