+ 1

In php, how echo(2**5); has 32 as its output ? Someone can explain .?

21st May 2019, 4:54 PM
Yashvi Shah
Yashvi Shah - avatar
2 ответов
+ 7
2 * 2 * 2 * 2 * 2 gives 32, it's like pow(2, 5);
21st May 2019, 5:04 PM
Ipang
+ 3
'**' is the power operator. So 2**5 is 2 to the power of 5 or 2*2*2*2*2 = 32.
21st May 2019, 5:03 PM
Russ
Russ - avatar