Mix PHP source code with HTML in PHP

Description

The following code shows how to mix PHP source code with HTML.

Example


  //ww w. j a  va  2 s .  co  m
<!DOCTYPE html>
<html>
<body>
   <?php echo "My first PHP script!"; ?>
</body>
</html>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition