i want to display a small intro of with a limited number of words without cutting the last word if it is too long...
I know there is a php function substr() but it does not display the intro like "this is my starting text..."
it makes it like "this is my starting t..." in PHP
thanks for any answer
why not this:
implode(' ', array_slice(explode(' ', $rows['title']), 0, 50));