$tabbed = str_replace(' ',"\t",'this is a test');$spaced = str_replace("\t",' ','this is a test');print "With Tabs: $tabbed";print "With Spaces: $spaced";?>
$tabbed
$spaced