Last week, I wrote about taking a "PHP-first" approach to programming - program first, output last. But what should go first in your program? M-V-C You may have heard about something called "MVC" (Model-View-Controller). If not, here's your crash course: Model Your Model is all of the information needed/used by your program. [Hopefully], the Model is well-organized. Think of it in terms of note-taking: notes are easier to ...
Many PHP tutorials begin with an introduction to the "basics" of the language: the <?php ?> tags, and usually the echo construct. For example, something like this: PHP Code: <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> Before I blast this, I want to ...
<?php ?>
echo
<html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html>
Updated 11-03-2012 at 01:27 AM by traq