Types and variables are closely related because variables are the most important elements of our program in which we store data, partial results of our calculations. Types tell us what data can be stored in variables.
variable is used for storing the data. can be declared in different locations and can be used in different locations. it can be distinguished according to the lifetime: they are global or local static variables. it is possible use in the structure or function.
variable use: $ using variables, you can access the data stored in a variable, can be used to store or ret...
Examples - PHP
Other pieces of example codes:
(double)$y / 5
types and variables in another programming language: