English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

log in PHP10function

log10The () function returns the logarithm of a number to the10Logarithm to the base.

Syntax

log10(num)

parameter

  • num-To calculate the logarithm of a value.

returns

log10The () function returns the logarithm of a number to the10Logarithm to the base.

Example

<?php
   echo(log10(1));
?>

Output Result

0

Example

Let's see another example-

<?php
   echo(log10(0));
?>

Output Result

-INF

Example

Let's see another example-

<?php
   echo(log10(10));
   echo(log10(2.7));
?>

Output Result

10.43136376415899