before html runs to show a webpage, php code runs first on web server.so, when there lines as follow:<table><tr><td> <?php echo"php runs first!";
?></td></tr></table>the first step is to run php code, we get:<table><tr><td>php runs first</td></tr></table>then, code is sent to browser, and we see somthing~
george dot langley at shaw dot ca
"the code is executed on the server"This is an important concept for the first-time PHP programmer tounderstand, so that when you get into string formatting later on, youunderstand the difference between formatting the on-screen content (asparsed by your browser) and formatting the HTML code (as returned bythe server).For example "/n" starts a new line in the HTML code, and its resultsare only seen if you look at the "source HTML". It is NOT the same as<br>!