Basic tagsThe PHP is very similar to the ASP. Each PHP code block starts with <?php
and ends with a ?>. Your can mix PHP with HTML:
<html>
<body>
<?php
// PHP code block
?>
</body>
</html>
We also can use <? and > to embed PHP code. The following tags all are
valid for the same use:
<?php ... ?> |
Standard PHP syntax |
<? ... ?> |
Shorthand syntax |
<% ... %> |
ASP-style PHP syntax |
<SCRIPT LANGUAGE="PHP"> |
Standard script syntax |
Like any other Web technologies, PHP can include an extention file. The syntax
is::
<? include("header.htm"); ?>
|