tcelestino on 08/24/11
Last Edited at 08/24/11 12:27pm
function TruncateText ($str_text, $max_char) { if(strlen($str_text)>$max_char){ return substr($str_text, 0, $max_char).'...'; } else { return $str_text; }}
Report this snippet Tweet
Comment:
You need to login to post a comment.