Add tab

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Add tab

Post by Goofan »

Hey,

My problem of the day is simply to add a tab of which you can do in a text editor such as word.
I can't come up with anything that can do a tab for me.

I looked up "\t" and that didn't do anything (which I could see)

I need to input a tab to a file because when I get the text within a file it doesn't take the tabs along with it.

Anyone got an idea of how I can manage this? PHP/CSS/HTML.... ??

Regards,
Thomas
Last edited by Goofan on Fri Nov 18, 2011 10:56 am, edited 1 time in total.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Add tab

Post by Celauran »

It's \t, not /t
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Re: Add tab

Post by Goofan »

Yea sorry for that :D

Still there is no visual of it.

Edited the main post.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Add tab

Post by Celauran »

Is this for writing to a file or for displaying in HTML? HTML ignores repeated whitespace, so you'd need a different approach.
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Re: Add tab

Post by Goofan »

Yea reading for a File and displaying it.

And yea I got to that conclusion myself.
I still haven't found a solution.
Post Reply