Learning programming is not an easy and long process. Learning the syntax of the language is the easiest and shortest part of the journey, but you can’t start without it. This course is dedicated to the basics of writing programs in PHP.

Information can be placed in special “storages” – variables. This allows you to reuse existing data and not to duplicate it in different parts of the code. In this module, we will learn how to change variables and name them so that reading your code will be understandable for any developer. You will realize that it is not so easy to come up with a variable name! We will also tell you how to use variables to simplify complex calculations.

Topics:

  • What is a variable;
  • Changing a variable;
  • Choosing a variable name;
  • Errors when working with variables;
  • Expressions in definitions;
  • Variables and concatenation;
  • Variable naming;
  • Magic numbers;
  • Constants;
  • Magic constants;
  • Interpolation;
  • Extracting characters from a string;
  • Heredoc.