• Post category:PHP

Power Function in PHP |

Power Function in PHP

Pow() function the return of value1 and raise to the value2(exponent). Learn power function in php

Ex:

echo pow(2,3); //8
echo pow(5,2); //25
echo pow(8,2); //64

sqrt(value:number):number
It returns the square root of a given value.

Ex:

echo sqrt(4); /2
echo sqrt(9); //3
echo sqrt(16); //4
echo sqrt(25); //5

Leave a Reply