<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Example.comgreetings</title>
</head>
<body>
<p>Hello.
<?php
//We zijn nu overgeschakeld (escaped) naar de PHP-modus.
//Inplaats van statische variabelen kunnen de volgende drie
//even gemakkelijk database-aanroepen of zelfs cookies zijn;
//of ze kunnen doorgegeven zijn uit een formulier.
$firstname = 'Joyce';
$lastname = 'Park';
$title = 'Ms.';
echo $title.$lastname;
//Ok we keren terugnaar HTML.
?>
. We know who you are! Your first name is <?php echo $firstname;?>.</p>
<p>You are visiting our side at <?php echo date ('y-m-d-H:--i:s') ?></p>
<p>Here is a link to your account management page: <a href="http://www.example.com/accounts/<?php echo$firstname.$lastname ; ?>" /><?php echo $firstname; ?>
's accounts management page</a></p>
</body>
</html>