Login |  Register 
I've learnt so much after subscribing to read your exclusive articles!
Nick
 

PHP Tags

The most important feature of a PHP script is the PHP tags without this the PHP engine won't know how to parse your code.

<?php

?>
Now we have got the basics of the PHP script lets do something with it. By making it right to the screen "Hello world".
<?php
echo "Hello World";
?>
There you go your first basic program that outputs the words Hello World.

Other PHP tag options

There are also three other types of PHP tags you can use:
<script language="PHP">

</script>

<%

%>

<?

?>
All of these work in the same way as the standard tags.

Comments to date: 1. Page 1 of 1. Average Rating:
khaingmarcho   11:46pm on Wednesday, October 19th, 2011 
Thank you.

security image
Written by Dominic Skinner
Last Updated: 2011-10-25 16:00:38