Assignment032 - Variables 1 & 2
$student="Julio Garcia";
print($student);
For example:Variables 1 & 2.php
<html>
<head>
<title>Variables 1 & 2.php</title>
</head>
<body>
<?php
$student="Julio Garcia";
Print($student);
?>
<?php
$number1=10;
$number2=15;
$number3=5;
$total=$number1+$number2+$number3;
print("<p>The sum of the numbers is ".$total."</p>");
print("I have ".($number1+$number2+$number3)." dollars!");
?>
</body>
</html>
Variables are containers for your data. For example, I can say that the variable $student is set equal to "Julio Garcia."
I can then tell PHP to print($student); and PHP will print: Julio Garcia.