Gen. partnerAlgotech

PHP function log()

Natural logarithm

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.