Variables

Variables in code has type and in case of numeric type they have precision.

Common data types are: Boolean (these holds true/false data), integers, floats (there could be more than a single data type for floats, it depends on level of precision that is required).

More precision comes at a cost of memory utilization.

Another data type is a single characters.

Another data type is a string. Even so, it is possible to use string data type to represent a character, dealing with strings have more overhead than dealing with single characters. It is a good idea to use single characters in cases when you know that no more than a single character will be used.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator