/ Published in: PHP
This function truncates text preserving the keyords specified, usefull for search results that should highlight found words.
URL: http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/
URL: http://www.barattalo.it/2009/11/24/truncate-string-preserving-some-words-in-php/