Page 1 of 1

Php: Basic Review

Posted: Tue Feb 10, 2026 4:23 pm
by Jason

Code: Select all

<!DOCTYPE html>

<head><title>Basic Php Review</title></head>

<body>

<!-- basic-php-example.php -->

<?php

$age = 23;

$_name = "Annie";

$class_1st_period = "Calculus";

echo "{$_name} who is {$age} has {$class_1st_period} at the start of the day.";

echo "$_name" + " " + "who is" + " " + $age + " " + "has" + " " + $class_1st_period + " " + "at the start of the day.";

# What a nice review.

// Yes it is.

/* I second
that. */

?>

</body>

</html>