\t

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
User avatar
frogrocker
New php-forum User
New php-forum User
Posts: 97
Joined: Mon Jul 07, 2003 10:30 pm
Location: Manchester

Fri Jul 11, 2003 2:46 pm

simple question here: what does \t do?

i have looked everywhere and i cant figure it out./..
"Don't look at the trombones - it only encourages them..."

willplatts@gmail.com

Alex
New php-forum User
New php-forum User
Posts: 180
Joined: Fri Mar 07, 2003 4:59 pm
Contact:

Fri Jul 11, 2003 4:09 pm

\t represents a tab cahracter
try this:
first you need to create a text file
then try doing this

Code: Select all

<?php
$outputstring = "text text and \t text";
$fp = fopen("location of your file", 'a');
fwrite($fp, $outputstring);
fclose ($fp);
?>

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"
Last edited by Alex on Fri Jul 11, 2003 4:16 pm, edited 1 time in total.

User avatar
frogrocker
New php-forum User
New php-forum User
Posts: 97
Joined: Mon Jul 07, 2003 10:30 pm
Location: Manchester

Fri Jul 11, 2003 10:00 pm

ah... I see.

Thanks
"Don't look at the trombones - it only encourages them..."

willplatts@gmail.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests