• 22-01-2009, 14:42:42
    #1
    şimdi
    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton, fastone, resim bakma, fotoğraf gösterici, resim düzenleme, resim izleme programı, resim gezgini, 3.7, Ücretsiz Resim Gösterici, FastStone Soft,FastStone Image Viewer download,FastStone Image Viewer türkçe, satın al, lisans, tam sürüm, yükle, bedava, ücretsiz

    metini ne öle bişey yapacazki

    5 virgül sonrasına kadar metini alıcak

    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton

    bunun gibi yalnız işlemde explode kullanmıcaz

    nasıl yapılabilir
  • 22-01-2009, 14:48:10
    #2
    Üyeliği durduruldu
    furkansfl adlı üyeden alıntı: mesajı görüntüle
    şimdi
    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton, fastone, resim bakma, fotoğraf gösterici, resim düzenleme, resim izleme programı, resim gezgini, 3.7, Ücretsiz Resim Gösterici, FastStone Soft,FastStone Image Viewer download,FastStone Image Viewer türkçe, satın al, lisans, tam sürüm, yükle, bedava, ücretsiz
    metini ne öle bişey yapacazki
    5 virgül sonrasına kadar metini alıcak
    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton
    bunun gibi yalnız işlemde explode kullanmıcaz
    nasıl yapılabilir
    explode niye kullanmıyoruz? sen buna cevap ver ben de sorunun cevabını yazayım.
  • 22-01-2009, 14:51:15
    #3
    MC_delta_T adlı üyeden alıntı: mesajı görüntüle
    explode niye kullanmıyoruz? sen buna cevap ver ben de sorunun cevabını yazayım.
    explode kullanmyı biliyor alternatif şeyler öğrenmeye çalışıyordur
    olamaz mı?
  • 22-01-2009, 16:22:42
    #4
    Üyeliği durduruldu
    furkansfl adlı üyeden alıntı: mesajı görüntüle
    şimdi
    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton, fastone, resim bakma, fotoğraf gösterici, resim düzenleme, resim izleme programı, resim gezgini, 3.7, Ücretsiz Resim Gösterici, FastStone Soft,FastStone Image Viewer download,FastStone Image Viewer türkçe, satın al, lisans, tam sürüm, yükle, bedava, ücretsiz
    metini ne öle bişey yapacazki
    5 virgül sonrasına kadar metini alıcak
    FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton
    bunun gibi yalnız işlemde explode kullanmıcaz
    nasıl yapılabilir
    fantazi yapmaya gerenk yok explode ile yapılır.

    tek tek karakter saymaya gerenk yok bende. forla dönüp karakter boşlukj mu diyede kontrol edebilirsiniz 5. boşluğu görünce çıkarsınız de dedigim gibi fantazi olur
  • 22-01-2009, 18:24:28
    #5
    preg_match_all ile yapılır

    <?php
    preg_match_all('#,(.*?),#si', $veri, $aktar);
    $i = 1;
    foreach($aktar as $yeni){
     if($i <= 5){
      echo trim($yeni[1]);
     }
     $i++;
    }
    ?>
    basitçe bi alternatif yalnız ilk veriyi almaz
  • 22-01-2009, 18:50:53
    #6
    Üyeliği durduruldu
    sdemirkeser adlı üyeden alıntı: mesajı görüntüle
    fantazi yapmaya gerenk yok explode ile yapılır.

    tek tek karakter saymaya gerenk yok bende. forla dönüp karakter boşlukj mu diyede kontrol edebilirsiniz 5. boşluğu görünce çıkarsınız de dedigim gibi fantazi olur
    Fantazi ++
  • 22-01-2009, 18:54:07
    #7
    skipful adlı üyeden alıntı: mesajı görüntüle
    preg_match_all ile yapılır

    <?php
    preg_match_all('#,(.*?),#si', $veri, $aktar);
    $i = 1;
    foreach($aktar as $yeni){
     if($i <= 5){
      echo trim($yeni[1]);
     }
     $i++;
    }
    ?>
    basitçe bi alternatif yalnız ilk veriyi almaz
    $i = 1;

    $i = 0;

    yaparsan ilk veriyede alacaktır sanırım
  • 22-01-2009, 19:05:55
    #8
    Üyeliği durduruldu
    baboli789 adlı üyeden alıntı: mesajı görüntüle
    $i = 1;
    $i = 0;
    yaparsan ilk veriyede alacaktır sanırım
    yok almaz. çünkü yazının en başında virgül yok.

    neyse olması gereken kod budur. gerçi başka yollarda olur ama en kısa bunu yazabildim.

    $asd = "FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton, fastone, resim bakma, fotoğraf gösterici, resim düzenleme, resim izleme programı, resim gezgini, 3.7, Ücretsiz Resim Gösterici, FastStone Soft,FastStone Image Viewer download,FastStone Image Viewer türkçe, satın al, lisans, tam sürüm, yükle, bedava, ücretsiz";
    $pos=0;
    for ($i=1;$i<=5;$i++) {
    $pos = strpos($asd,",",$pos);
    $pos++;
    }
    echo substr($asd,0,--$pos);
  • 22-01-2009, 19:06:34
    #9
    babaoli i yi sadece 5. veride işlemi bitirmek için kullanıyorum ama tamam hallettim preg_match_all('#(.*?) yazınca işlem oluyor

    <?php
    
    
    $veri = "FastStone Image Viewer indir,imageviewer, faststone, fast stone, fest sıton, festsıton, fastone, resim bakma, fotoğraf gösterici, resim düzenleme, resim izleme programı, resim gezgini, 3.7, Ücretsiz Resim Gösterici, FastStone Soft,FastStone Image Viewer download,FastStone Image Viewer türkçe, satın al, lisans, tam sürüm, yükle, bedava, ücretsiz";
    
    preg_match_all('#(.*?),#si', $veri, $aktar, PREG_SET_ORDER);
    	
    $i = 1;
    foreach($aktar as $yeni){
     if($i <= 5){
      echo trim($yeni[1]).",";
     }
     $i++;
    }
    
    
    // çıktı : FastStone Image Viewer indir,imageviewer,faststone,fast stone,fest syton,
    ?>