Now, after we learned how to show content and also had a first glance at variables, we will now go a step further.
To define a variable in PHP you just need to use $ and a variable name: $variable
.
You can use as variable name whatever you like, however you are not allowed to let it start with a number, like $1variable
and there are also some predefined variables, about which I will talk later.
There are many types of variables, but for now we concentrate on 4 types (actually 5, but the fifth will follow in another tutorial). Weiterlesen