From past experience I have found that if you copy and paste content form Microsoft Word of from webpages, there can sometimes be tab characters within the text. To remove tab characters in your PHP string you can do the following…
<?php $a "this is a sentence" $a = str_replace("t",' ',$a); echo $a; ?>
The above code uses str_replace to replace the tab character with a space.