PHP log1p() Function

Definition and Usage

log1p() returns log(1 + x), even when the value of x is close to zero, and can calculate accurate results.

Syntax

log1p(x)
Parameter Description
x Required. A number.

Description

Warning:This function is experimental. The behavior of this function, including the function name and any other documentation related to this function, may change without notice in future PHP releases. Use this function at your own risk.