I have started learning PHP and trying a simple echo statement on XAMP on my machine. This is my code :
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<title>Hello</title>
<link rel=”stylesheet” type=”text/css” href=”common.css” />
</head>
<body>
<h1> <?php echo “Hello, world !”; ?> </h1>
</body>
</html>
When I run this I am getting this error :
Parse error: syntax error, unexpected '!', expecting ',' or ';' in C:\xampp\htdocs\PHP\hello.php on line 9
I have no clue as to what is going wrong.