<html>
<head>
<title>Variables</title>
</head>
<body>
<?php
// String variables (this is a single-line comment)
$firstname = 'Elmer';
$surname = 'Fudd';
$message1 = "Hello, $firstname";
$message2 = "Your fullname is $firstname $surname";
echo $message1 . "<br>";
echo ($message2); // parenthesis are optional
echo "<p>See you later, Ms. $surname</p>");
/*
Numerical variables
(This is a multi-line comment)
*/
$a = 1.0;
$b = 2.5;
$c = $a + $b;
print "a + b = $c"; // print works like echo
?>
</body>
</html>