/ Published in: PHP
Pass in text and the maximum allowable length and this snippet will return as many full sentences from the text as it can within that length. If no sentences, it will just trim to the maximum length allowed.
URL: http://www.addedbytes.com/code/