quick fix | February 8th, 2010
use this function ::
function first_sentence($content) { $pos = strpos($content, '.'); if($pos === false) { return $content; } else { return substr($content, 0, $pos+1); } }
and then call it like ::
echo first_sentence($content);
There are no comments yet, add one below.
You must be logged in to post a comment.