PHP function log()

Availability in PHP 4.0

Natural logarithm

Parameters

Parameter Data type Default value Note
$arg float not The value to calculate the logarithm for
$base float null The optional logarithmic base to use (defaults to 'e' and so to the natural logarithm).

Return values

float

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

Other sources

Official log function documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.