PHP - Programming Language
This course covers the basics of programming in PHP. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Variables

Lesson 6
Author : GOUP
Last Updated : September, 2020


echo "There once was a man named $characterName <br>"; echo "He was $characterAge years old <br>"; echo "He really liked the name $characterName <br>"; echo "But didn't like being $characterAge <br>";

echo "There once was a man named $characterName <br>"; echo "He was $characterAge years old <br>";

$characterAge = 80;

echo "He really liked the name $characterName <br>"; echo "But didn't like being $characterAge <br>";

Names are case-sensitive and must start with '$' then: letters, _ After, may include letters, numbers, _ Convention says There is no set convention, people will use camel case but also underscores ex. myFirstVariable ex. my_first_variable