You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- PHP variables start with $
- Variable names are case sensitive
- A valid variable name starts with a letter or underscore
- A variable can't start with a number
- A variable can only contain alpha-numeric charachters and underscores
$fName = "Taichen";
echo"Hi " . $fName; //Outputs: Hi Taichen$number = 35;
$price = 2.99;
echo"I just bought " . $number . " cakes for $" . $price". What a deal!";
//Above output: I just bought 35 cakes for $2.99. What a deal!