Jump to: navigation, search

Php pow

From w3cyberlearnings

Contents

PHP function pow

This function returns X raised to the power of Y.

Syntax pow

  • X is the base use
  • Y is the exponent
pow(X,Y);

Example 1

<?php

echo pow(2, 2);
echo "<br/>";
echo pow(2, 3);
?>

Output

4
8


Related Links


Navigation
Web
SQL
MISC
References