Parse error: syntax error, unexpected '>' in C:\xampp\xampp\htdocs\TwoFunctions.php on line 16
I am not sure why I am getting an error as I'm entering verbatim what is printed in the text. There doesn't appear to be any syntax mistakes.
Code is as follows:
<!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">
<head>
<title>Two Functions</title>
<meta http-equiv="content-type"
content="text/html; charset=iso-8859-1" />
</head>
<body>
<?php
function printMessage($FirstMessage){
echo "<p>$FirstMessage</p>;
}
function returnMessage(){
return "<p>This message was returned from a function.</p>";
}
printMessage("This message was printed from a function.");
$ReturnValue = returnMessage();
echo $ReturnValue;
?>
</body>
</html>
Thanks for your assistance!

New Topic/Question
Reply




MultiQuote





|