log10()
Anonymous contributor
Published Jun 26, 2023
Contribute to Docs
The log10()
function returns the base-10 logarithm of a number.
Syntax
log10($arg);
The function accepts a single parameter, $arg
, which represents the number to calculate the base-10 logarithm for.
Codebyte Example
The following codebyte example uses the log10()
function to return the base-10 logarithm of 100
, then it outputs the result using echo:
All contributors
- Anonymous contributor
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.