Saturday 27 July 2013

PHP Start and End tags

There are three basic types of PHP Start and End tags which is also called PHP Opening and Closing tags respectively.


Figure: PHP Starting and Ending Tags


Examples:

You can use any type of php tag in your script.

<?
echo "<P>Example of 1st type of PHP tag.</P>";
?>


<?php
echo "<P>Example of 2nd type of PHP tag.</P>";
?>


<script language="php">
echo "<P>Example of 3rd type of PHP tag.</P>";
</script>


No comments:

Post a Comment