Tag Archives: PHP


PHP: Basic Variables

So, you want to write some PHP?  I’m going to go over some basics of PHP in the next few posts.  This first post is going to cover basic variables.

Step #1: You need to define set up your PHP file

PHP is executed out of files that end in ‘.php’ (as you might expect).  You also need to define where, in the file, your PHP code is.  That’s done by prepending your code with ‘<?php’ and appending it with ‘?>’.  Let’s see what that looks like.

Continue reading