Hi,
I am using substr to bring back only the first few lines of text from a database field -
For example:
$message_contents = substr($message_contents, 0, 43);
How can I protect against the substr to deliver the next full word ?
so, if my 44th,45th,46th charachters were (com)
currently the substr will just deliver daniweb. ?? but I would like to display all of the last word
any pointers as always will be very much appreciated -