php pow 1

php pow

$z = pow(2, 8); 	// int(256)
$z = $x ** $y;		// PHP >= 5.6

Here is what the above code is Doing:
1. $x is assigned the value of 2.
2. $y is assigned the value of 3.
3. $z is assigned the value of 2 to the power of 3.
4. $z is assigned the value of 2 to the power of 8.
5. $z is assigned the value of 2 to the power of 3.

Similar Posts