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

pow() function in PHP

Thepow()The function returns the remaining capacity raised to the power of B.

Syntax

pow(a,b)

parameter

  • a-base

  • b-exponent

returns

Thepow()The function returns the remaining capacity raised to the power of B.

Example

<?php
   echo(pow(3,5)  .  "<br>");
?>

Output Result

243<br>

Example

Let's look at another example-

<?php
   echo(pow(-4,6)  .  "<br>");
   echo(pow(-3,-9)  .  "<br>");
?>

Output Result

4096<br>-5.0805263425291E-5<br>

Example

Let's look at another example-

<?php
   echo(pow(-4,-5.3));
?>

Output Result

NAN