\t represents a tab cahracter
first you need to create a text file
then try doing this
Code: Select all
$outputstring = "text text and \t text";
$fp = fopen("location of your file", 'a');
you need to run the script and then check the file that you were writing to (unless it gives you some kind of a warning)there should be a tab between "and" and "text"