PHP.nl

log

log

Natural logarithm

float **log** float $num float $base

If the optional parameter is specified, returns log , otherwise
returns the natural logarithm of . base``log``num``log``num

numThe value to calculate the logarithm for

baseThe optional logarithmic base to use (defaults to 'e' and so to the natural logarithm).

The logarithm of to , if given, or the natural logarithm.
num``base

log10``exp``pow``error_log