PHPsu
MANUAL ZH  |  EN
     


Current Position :| index>Beginners> php Basic tags

php Basic tags

FROM: AUTHOR: TIME:2008-08-19 HITS:

The PHP is very similar to the ASP. Each PHP code block starts with <?php and ends with a ?>. Your can mix PHP with HTML:

do you kown phpsu.com?

<html>
<body>

<?php
// PHP code block
?>

</body>
</html>

do you kown phpsu.com?

We also can use <? and > to embed PHP code. The following tags all are valid for the same use: welcome to phpsu.com

<?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:: phpsu.com

<? include("header.htm"); ?>   http://www.phpsu.com 

TITLE:php Basic tags
Previous:PHP Tutorials
Next:None
Copyright 2008 The PHPsu All rights reserved. This mirror generously provided by: .Hp Inc.
Last updated: Tue Aug 19 22:10:23 GMT-8 2008