PHP/Language Basics/Php Tag
Содержание
Basic PHP Start and End Tags
Opening Tag Closing Tag
---------------------------------------------
<?php ?>
---------------------------------------------
<? ?>
---------------------------------------------
<script language="php"> </script>
---------------------------------------------
Php tag:
<?
echo "<P>This is a test using the second tag type.</P>";
?>
Php tag:
<?php
echo "<P>This is a test using the first tag type.</P>";
?>
Php tag: script language
<script language="php">
echo "<P>This is a test using the third tag type.</P>";
</script>
Short circuit syntax
<?="This is another PHP example.";?>