:::

3. Variables

To do more complex coding, we need a way to "save" these values. We can do this using variables. A variablecan store a string or a number, and gives it a specific case-senstive name.

Examples:

  • $myName = "Beyonce";
  • $myAge = 32;

All variable names in PHP start with a dollar sign ( $ ).


:::

語系選擇