I have been trying to learn PHP using a book (PHP for Absolute Beginners). I have entered the code exactly as shown in the book but it doesn't work. I am running it through XAMPP and my code up until now has been working. I was wondering if anyone can tell me what is wrong with the code below?
<?php
error_reporting( E_ALL );
ini_set( "display_errors", 1 );
$title="Test title";
$content="<h1>Hello World</h1>";
$page="
<!DOCTYPE html>
<html>
<head>
<title>$title</title>
<meta http-equiv='Content-Type'content='text/html;charset=utf-8/>
</head>
<body>
$content
</body>
</html>";
echo $page;
Thanks very much
Dave