• 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


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

It returns the square root of a given value.


echo sqrt(4); /2
echo sqrt(9); //3
echo sqrt(16); //4
echo sqrt(25); //5
READ ALSO  What are Scope of Variable in PHP | Explained

Leave a Reply