<?php
$title = "Hello World!";
?>
<html>
<head>
<title><?= $title ?></title>
</head>
<body>
<h1>PHP Workshop</h1>
echo "<p>" . $title . "</p>";
</body>
</html>
Demo: Diese PHP-Seite aufrufen.