- All Exams Instant Download
What is the output of the following code?
What is the output of the following code?
echo "1" + 2 * "0x02";
A . 1
B . 3
C . 5
D . 20
E . 7
Answer: C
What is the output of the following code?
echo "1" + 2 * "0x02";
A . 1
B . 3
C . 5
D . 20
E . 7
Answer: C
from PHP 7 or later result is A
till PHP 5.6.29 result is C