$text="Deneme bosluk yazisi. Test 1 Test2"; function bosluk_kaldir($text) { while (preg_match('/\s{2}/', $text)) { $text = preg_replace('/\s{2}/', ' ', $text); } return $text; }
Bilgisayar Yüksek Mühendisi Mesut PEK
C#- Java-Python-MVC- Web Form-Web Servis-Mobil – Blog ve Ders Notları
$text="Deneme bosluk yazisi. Test 1 Test2"; function bosluk_kaldir($text) { while (preg_match('/\s{2}/', $text)) { $text = preg_replace('/\s{2}/', ' ', $text); } return $text; }