Contact: aviboots(AT)netvision.net.il
41,157 questions
53,647 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# */