|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (2 bit)
|
Hello im only 14 so there are some things i dont understand.
I have spent 3 days nw working on PHP and i have become stuck, well dont know what 1 thing means. it is the \n, what is this? I know about the echo and using the \ to make a quotation mark. So i know about that. It says somthing about making a new line for a character, so tell me why should i use this and what it atually means. Thanks |
|
|
|
|
|
#2 |
|
Member (9 bit)
|
Yeah, all \n does is make a new line.
|
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: May 2004
Posts: 103
|
"\" is an escape character. It really tells the computer you want to put a special character or do something that should not be treated as text.
(I.E. \n creates a new line, \" prints a quote, and \\ should print a singe \" |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
\ has the speical effect shaticus mentioned when used in double quotations.
PHP Code:
|
|
|
|
|
|
#5 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
The main reason to use a new line is to make your HTML code more readable. Here is an example without the new line:
PHP Code:
PHP Code:
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|