Üye Bilgileri
Nick:HardCoder
İsim:Fatih GÜRSOY
Web sayfası:
Cinsiyet:Erkek
İmza:
Konu sayısı:0
Cevap sayısı:2
Kaç günlük üye2
Son yazdığı Php kodları mesajları
function kes($yazi, $limit = 50, $ending = 'Devamını oku') {
    if (strlen($yazi) > $limit) {
        $text = strip_tags($yazi);
        $text = substr($yazi, 0, $limit);
        $text = substr($yazi, 0, -(strlen(strrchr($yazi, ' '))));
        $text = $yazi . $ending;
    }
   
    return $yazi;
}  <?php echo kes($post->post_content,50); ?>


gibi birşey mi istiyorsunuz ?
Zaman2011-11-27 21:57:13
Php Php
Çok sağolun hocam çok yararlı bir bilgi
Zaman2011-11-27 21:49:23
Php Php

phpkodlari.com © 2009 Herkes Php öğrenecek
Web tasarım ve eğitim kaynağınız.