Mix php code with html code in PHP

Description

The following code shows how to mix php code with html code.

Example


<!DOCTYPE html>//w w w.j a  va  2  s.c  o m
<html>
  <head>
    <title>Hello</title>
    <link rel="stylesheet" type="text/css" href="common.css" />
  </head>
  <body>
    <h1><?php echo "Hello, world!"; ?></h1>
  </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