codice:
Double quoted
If the string is enclosed in double-quotes ("), PHP understands more escape sequences for special characters:
Tabella 11-1. Escaped characters
sequence meaning
\n linefeed (LF or 0x0A (10) in ASCII)
\r carriage return (CR or 0x0D (13) in ASCII)
\t horizontal tab (HT or 0x09 (9) in ASCII)
\\ backslash
\$ dollar sign
\" double-quote
\[0-7]{1,3} the sequence of characters matching the regular expression is a character in octal notation
\x[0-9A-Fa-f]{1,2} the sequence of characters matching the regular expression is a character in hexadecimal notation
Again, if you try to escape any other character, the backslash will be printed too!
But the most important feature of double-quoted strings is the fact that variable names will be expanded. See string parsing for details.
Sono caratteri di controllo per le stringhe.
e' un tag HTML. che poi si possa inserire un tag html in una stringa e' un'altro paio di maniche.
Per esempio: in un file di testo usato/aperto con php, il ritorno a capo e il new line viene gestito con un carattere di controllo \n se file UNIX, e con \r\n se file di WINDOWS.
Se tu dovessi inviare questo file in stampa chi fa andare a capo la stampante e passare ad inizio riga sono prorio questi due: carriage return \r e linefeed \n.
Leggiti la pillola di Saibal abbastanza chiara :
http://forum.html.it/forum/showthrea...hreadid=228487
dove spiega come utilizzare la funzione nl2br() che e' appunto legata all'uso di questi caratteri di controllo.