|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
print ascii characters
Hi all,
I've written a little script that prints data from mysql and hard coded text into a text file. I need to also seperate a couple words with TAB. I can't seem to figure out how to print a tab. would this have anything to do with ascii? The integers from asciitable.com for TAB are Dec Hex Oct 9 9 011 Can anyone help me figure this out? I bet it's easy... Thanks!
__________________
****************************************************************************** fear is the reason anything bad happens; a fearless person is less likely to live a long time |
|
#2
|
|||
|
|||
|
how about chr(9)?
|
|
#3
|
|||
|
|||
|
Yep, found it, or use sprintf.
Dunno why I couldn't find it. Thanks mate! |
|
#4
|
|||
|
|||
|
Quote:
maybe still sleepy? ![]() |
|
#5
|
|||
|
|||
maybe just feeling a bit stupid today! |
|
#6
|
|||
|
|||
|
or you can use escape characters. A tab would be:
print"\t"; Your ouput needs to enclosed in double quotes for this to work. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > print ascii characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|