showTag('functions');

Return short text snippet function

function textSnippet($string,$length=200){
  return preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length+1));
}

Showing 3 lines of 3 total lines in this snippet.