i have a large blob field in a db on average around 500 characters
i want to be able to find <p> break after the 200th character end the string then start a new string from where the last one finished
?
$pos = strpos($blob, '<p>', 200);
if ($pos === false) { // note: three equal signs $pre = $blob; $post = ''; } else { $pre = substr($blob, 0, $pos); $post = substr($blob, $pos); }