i have come across "\n" in code examples but they don't provide an explaination for it.

may i know what does it mean?

and same goes for "\t".
kinda puzzled with them.

thanks
🙂

    \n is the newline character, \t is the tab character. It's usually use for formatting html. eg,

    echo "<html>\n<head>\n</head>\n<body>\n\t<div>\n\t</div>\n</body>\n</html>";

    will look like:

    <html>
    <head>
    </head>
    <body>
    	<div>
    	</div>
    </body>
    </html>

    When viewing source 🙂

      got it nice and clear

      thanks

        Write a Reply...