print($student);
For example: variables.php
<html> <head> <title>variables.php</title> </head> <body> <?php $student="Julio Garcia"; Print($student);
?>
</body> </html>
For example:variables2.php
<html> <head> <title>variables2.php</title> </head> <body> <?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>
|