gfazioli on 09/21/08
Last Edited at 09/21/08 09:21am
/** * String word cut * * @private */function _wpmutility_wordCut($content, $limit){ $content = explode(' ',$content); for($i=0; $i<$limit; $i++) $summary[$i] = $content[$i]; $summary = implode(' ', $summary).'...'; return $summary;}
URL: http://www.undolog.com/2008/09/21/very-short-snippet-php-word-cut/
Report this snippet Tweet
Comment:
You need to login to post a comment.