Return the natural logarithm of different numbers:
The log() function returns the natural logarithm of a number, or the logarithm of number to base.
Parameter | Description |
---|---|
number | Required. Specifies the value to calculate the logarithm for |
base | Optional. The logarithmic base to use. Default is 'e' |
Return Value: | The natural logarithm of a number, or the logarithm of number to base |
---|---|
Return Type: | Float |
PHP Version: | 4+ |
PHP Changelog: | PHP 4.3: The base parameter were added |