PHP Datatypes
Posted: February 24, 2009
Programming languages all support different types of data, such as numbers or text. But to the programming language, it gets even more specific. There are many different kinds of numbers, for example, depending on whether it has a decimal or not.
Some common datatypes:
int – an integer, or whole number without a decimal
float – floating point numbers, basically a number with a decimal
double – same as a float, but more specific. It can hold longer values and more decimal places
bool – Boolean values. Basically true or false
string – strings of text
array – a special type of variable which can hold a whole set of other variables inside it. Read the rest of this entry »
