number pow ( number base, number exponent), a base and a power to raise it by : pow « Math « PHP






number pow ( number base, number exponent), a base and a power to raise it by

 
<?
    print pow(10,2); // 100
    print pow(10,3); // 1000
    print pow(10,4); // 10000
    print pow(-10, 4); // 10000
?>
  
  








Related examples in the same category

1.Using the pow() function with integers, floats, and both negative and positive numbers.
2.Using the pow() function with integers, floats, and both negative and positive numbers.