I've written myself a blog system, and on a page I want to display the first part of a blog entry.
Currently I'm using
Code: Select all
$entry = substr($row[entry], 0, 2000);<img src="/im
<a href="http://ww
(The links are stored in the database using bbcode
Is there some way to get php to chop the entry to around about 2000 characters, if the 2000th character falls in the middle of an image or link then it will chop at the end of the image or link or the begining of it instead of part way through.
Hope you guys understand what I'm trying to do
Any help would be great.