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.