Variables

  1. Declaring and using variables.
<?php
$name = "John";
$age = 30;
echo "My name is $name and I am $age years old.";
?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *