PHP - Division: /Division is a matematical operation, it can be used for integers and real numbers.
DescriptionUsed keywords: /
- Result - Real numbers Result of the division is always a real number.
PHPDivision the possible of use:
$x = 64 / 8; // x=8 $y = $x / 0.5; // y=16 $z = ($x * 2 / $y +5);// z=1.1
PHPEven one example in what situations we can use the operation division:
(double)$i / 0xab (double)27 / 3 (2.5 / 2 + 1.25) + 2
PHPOther pieces of example codes:
50 / $i
You can find it in the following collections: arithmetic operators
Division in another programming language: