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