Alternatively log(x, 10) may be used.
(PHP 4, PHP 5, PHP 7)
log10 — Base-10 logarithm
$arg
)
Returns the base-10 logarithm of arg
.
arg
The argument to process
The base-10 logarithm of arg
Note that log of a negative or undefined number returns -Infinity.