I have used
Code: Select all
if (strlen($rows['content'])>100)
$rows['content'] = substr($rows['content'],0,100)."...";;
echo $rows['content'] . '<br>';The problem I am facing is that sometimes the words are cut in between as shown below
"Redistributions of source code must retain the a..."
I want a... to be a complete and not to break the work in middle
it should be "Redistributions of source code must retain the above..."
How to let the complete word show and then display ...