Variables in Depth
Variables start with $ and are case sensitive. They need no declaration and PHP decides the type. Variable variables and references exist but are rarely needed.
Example
$name = "Ada";
$Name = "Kofi";
echo $name, " ", $Name, "\n";
$a = 1; $b = &$a; $b++;
echo $a;Result
Ada Kofi 2
Exercise
Variable prefix.
name = "Ada";Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.