Php Tags Tutorial
PHP tag is a container where we write our php script. You can think of php tags as a boundry line for php code on your page. php tags are usually in a couple shape same like html tags. As htmls tags are <html> and </html>, php starting tag is <?php and ending tag is ?>
The standard way of writing php tags is
<?php
//php code here
?>
php tag can also be used as javascript style.
<script language="php">
//php code here
</script>
asp style can also be used to write php code
<%
//php code here
%>
a simple way of writing php tag is
<?
//php code here
?>
In this php tutorial we will stick to standard way of writing php scripte that is <?php ?>
In PHP we will be using different small element again and again, some of them are
- a semi colon (;) : to end a line
- normal brackets ( ): most of the time represents a function.
- Square brackets [ ]: are for arrays
- curley brackets { }: define the block of body of a structure.

