There are three basic types of PHP Start and End tags which is also called PHP Opening and Closing tags respectively.
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>
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