Control Characters Having no Effect
Posted: Sun Nov 05, 2006 1:07 am
Hi,
I'm new to PHP.
I tried to find answers to these on the web, but couldn't find such.
I use PHP 5.2 on Win XP, Abyss and KFWS servers.
When I use the Print or Echo functions, in the double-quote form,
the control characters (i.e. \n,\r) have no effect on the text output.
For example, thee two will have the same output on my display:
(a) print("Hello World!\nHow are you ?")
(b) print("Hello World!How are you?")
Thanks,
Gurson.
I'm new to PHP.
I tried to find answers to these on the web, but couldn't find such.
I use PHP 5.2 on Win XP, Abyss and KFWS servers.
When I use the Print or Echo functions, in the double-quote form,
the control characters (i.e. \n,\r) have no effect on the text output.
For example, thee two will have the same output on my display:
(a) print("Hello World!\nHow are you ?")
(b) print("Hello World!How are you?")
Thanks,
Gurson.