PHP Tutorial What is Variable in PHP 5

Variable Declaration and Usage:

Variables are used to store data. In PHP, variables are declared with a dollar sign ($) followed by the variable name.

PHP

$name = "Alice";

$age = 30;

echo "My name is $name and I am $age years old.";

?>

Use code with caution.