Whats the deal with \n and why cant i get it to work!!!!
Posted: Thu Jul 30, 2009 8:25 am
Hi all,
This is probably a bit of a newbie question but iv seen references to escaping characters in the training materials i am using such as \n , \t, \" etc. each time i try to use \n to start a new line the n simply gets removed from the output when i echo it to the web page. I am typing it as follows.
echo "I have never used this \n thingie and got it to work.";
Can anyone tell me if I am doing it wrong in some way?
This is probably a bit of a newbie question but iv seen references to escaping characters in the training materials i am using such as \n , \t, \" etc. each time i try to use \n to start a new line the n simply gets removed from the output when i echo it to the web page. I am typing it as follows.
echo "I have never used this \n thingie and got it to work.";
Can anyone tell me if I am doing it wrong in some way?