home

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

 


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web development by web design company DotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com. web design courses