A variable reserves a memory area that can be assigned a value. This can be called up again at another point in the mapping document. In some cases it is necessary to store a value temporarily, e.g. if the value is changed by a calculating function, but the original value is still required elsewhere. The use of variables can significantly improve the performance of a mapping.
For global variable definitions, see: Variable definitions