PHP and MySQL Basics: Syntax
Posted by Daniel at 5:37 pm
PHP syntax is very simple it has 3 main parts, the first part is the php opening tag which is <?php, after that is your PHP CODE then the last part is the php closing tag which is ?>
it looks like this..
<?php . . . . . . . . . . . . . . . . . . . . . . YOUR PHP CODE HERE . . . . . . . . . . . . . . . . . . . . . . ?>
you can also use the PHP Short open tags:
<? ?> <?= ?>
but this is considered a bad habit.. you can use this tags but be sure that short open tag is set to on in your PHP.INI file.
