PHP is not ideal for doing presentation, no matter how you spin it.
Try toying around with PHP's XSLTProcessor object. You use the PHP to analyze the environment variables, such as page request, get data, post data, session data and cookie data, and then use SQL to build an XML tree with the data needed for display. That XML tree is then parsed through an XSL template to generate HTML. This leaves absolutely no ending PHP tags in your PHP, and if done properly, you have no derivative data in your XML tree (for instance, a list of all users along with a count of how many users joined in the past month, that is just derived from the list and their join date), and the XSL generates all of the HTML.
It's also far easier to look at this way, since the PHP documents all are pure PHP and the XSL documents are all pure DOM structure, alternating between HTML nodes and XSL nodes.
As a Nevadan who lives within 100 miles of Yucca Mountain, I'm pro nuclear power. The containment methods are rock solid and the shipping bypasses the major city of Las Vegas entirely. Plus, the fees my state will charge other states will provide a good supply of income that can be used to overhaul some underfunded departments, notably transportation and education.
PHP is not ideal for doing presentation, no matter how you spin it. Try toying around with PHP's XSLTProcessor object. You use the PHP to analyze the environment variables, such as page request, get data, post data, session data and cookie data, and then use SQL to build an XML tree with the data needed for display. That XML tree is then parsed through an XSL template to generate HTML. This leaves absolutely no ending PHP tags in your PHP, and if done properly, you have no derivative data in your XML tree (for instance, a list of all users along with a count of how many users joined in the past month, that is just derived from the list and their join date), and the XSL generates all of the HTML. It's also far easier to look at this way, since the PHP documents all are pure PHP and the XSL documents are all pure DOM structure, alternating between HTML nodes and XSL nodes.
As a Nevadan who lives within 100 miles of Yucca Mountain, I'm pro nuclear power. The containment methods are rock solid and the shipping bypasses the major city of Las Vegas entirely. Plus, the fees my state will charge other states will provide a good supply of income that can be used to overhaul some underfunded departments, notably transportation and education.