function getSubWords($string, $maxCharCount, $moreHTML = "") { $string = strip_tags($string); if ($string) { $pos = @strpos($string, ' ', $maxCharCount); return substr($string, 0, (($pos)?$pos:$maxCharCount)).$moreHTML; } }
Bilgisayar Yüksek Mühendisi Mesut PEK
C#- Java-Python-MVC- Web Form-Web Servis-Mobil – Blog ve Ders Notları
function getSubWords($string, $maxCharCount, $moreHTML = "") { $string = strip_tags($string); if ($string) { $pos = @strpos($string, ' ', $maxCharCount); return substr($string, 0, (($pos)?$pos:$maxCharCount)).$moreHTML; } }