function long_content ($text, $number){ if(strlen($text) >= $number){ $cut= substr($text,0, $number); return substr( $cut , 0 , strrpos($cut,' ')).'...'; } else return $text; }
Last updated 5 years ago