Has anybody dealt with special characters like paragraphs and tab marks, posted from a form to a PHP program? I would like to strip them out from the form variable string.
Thanks
Try trim(), ltrim(), or rtrim().
Also, how about a RE?
$chars = array("\n","\t");
foreach($chars as $c) $text = eregi_replace("$c","",$text);
Just modify the array to contain the characters you want to strip.