By: George Langley Viewed: 707 times Printer Friendly Format
This is an important concept for the first-time PHP programmer to understand, so that when you get into string formatting later on, you understand the difference between formatting the on-screen content (as parsed by your browser) and formatting the HTML code (as returned by the server).
For example "\n" starts a new line in the HTML code, and its results are only seen if you look at the "source HTML". It is NOT the same as <br>!
before html runs to show a webpage, php code runs first on web server.
so, when there lines as follow:
echo "php runs first!";
the first step is to run php code, we get:
php runs first
then, code is sent to browser, and we see somthing~
Most Viewed Articles (in PHP )
Latest Articles (in PHP)
Comment on this tutorial
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews