A large number of math functions are built in to the core of PHP and additional functionality is available through extensions including arbitrary precision numbers, statistics, and linear algebra.
The built-in functions cover exponential, logarithmic, trigonometric, hyperbolic functions as well as rounding and random number generators.
PHP supports integer and float data types that can be used to perform the basic math operations: addition (+), subtraction (-), multiplication (*), and division (/). No special functions are needed to perform these actions and the logic can be ...