thank you very much
but i want a problem
at this line:
echo substr($var, 0, $20);
if 20'st character of sentence in $var is in a word then word will broken
i want if 20'th character is not space character it goes front until to arrive space character and then show it.
example
this are a book
7'st of charcter is "r" but it should showes "this are" no "this ar"