... after completion of a word
Posted: Fri Oct 26, 2007 1:07 am
Hi there, I am working on a search display part.
I have used
to restrict the display of more than 100 characters for displaying a short content.
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 ...
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 ...