In this chapter we will look in depth into Integers, Floats, and Number Strings.
PHP Numbers
There are three main numeric types in PHP:
Integer
Float
Number Strings
In addition, PHP has two more data types used for numbers:
Infinity
NaN
Variables of numeric types are created when you assign a value to them:
Example
$a = 5;
$b = 5.34;
$c = "25";