|  | 
PHP strtok() stringlerdeki bölücü ve boşlukları temizlemek veya formatlamak - PHP Webmaster bilgi bankası, knowledge base Webmaster Araçları| AnaSayfa > PHP  > PHP strtok() stringlerdeki bölücü ve boşlukları temizlemek veya formatlamak |  |  |  | Kategori | : PHP |  | Gönderen | : Admin |  | Tarih | : 2009-05-29 |  | Puan | : 0  | Katılımcı : 0 |  | Okunma | : 5248 |  |  |  |  |  |  |  |  | örnekler;
 
 <?php
 $string = "En iyi php\töğreten web sitesi\nwww.codekodu.com";
 
 $tok = strtok($string, " \n\t");
 
 
 while ($tok !== false) {
 echo $tok." ";//bölücülerin yerine boşluk kullan
 $tok = strtok(" \n\t");
 }
 ?>
 
 <?php
 $string = "En iyi php\töğreten web sitesi\nwww.codekodu.com";
 
 $tok = strtok($string, " \n\t");
 
 
 while ($tok !== false) {
 echo $tok.", ";//bölücülerin yerine virgül kullan
 $tok = strtok(" \n\t");
 }
 ?>
 
 
 | 
 | Yorumlar |  | Henüz Kimse Yorum Yapmamış, ilk yorumu siz ekleyin! |  | Yorum Ekleme Aparatı |  | Yorum Eklemek için lütfen sol menuden giris yapınız.. |  | Toplam 0 yorum listelendi. | 
 |