Shorten Paragraph or String without broken/incomplete word using PHP up to a maximum character length

Ever wondered how to shorten a paragraph or string using PHP without broken words? There is a function in PHP substr() which cops a string upto a character length. But the problem is, that it leaves incomplete words after shortening.Say you have a paragraph: The famous astrophysicist, speaking in a new documentary, said spaceships could one day be capable of such high speeds that time slowed down for those on board. According to the Times...

Read More