log() function returns the natural logarithm of a value.
$result = log(number,base);
number is the number whose logarithm is to be calculated and
base is an optional parameter which signifies the logarithmic base to be used. By default
base is e.
The value returned by the function is a
A basic implementation of the
This will result in the following output:
log() to return the value of 5 base 10: