Easy Tutorial
❮ Php Echo Print Func String Strtoupper ❯

PHP log10() Function

PHP Math Reference Manual

Example

Returns the base-10 logarithm of different numbers:


Definition and Usage

The log10() function returns the base-10 logarithm of a number.

Syntax

Parameter Description
number Required. Specifies the value to calculate the logarithm for.

Technical Details

Return Value: The base-10 logarithm of the number.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Php Echo Print Func String Strtoupper ❯