Vidyalelo
PHP · Q16

Basic PHP

Programming · PHP · question 16

Q16

Which of the below statements is equivalent to add += add ?

A.
add
B.
add +$add
Answer
C.
add + 1
D.
add + $add + 1

Answer: Option B

Solution

Answer: Option B
Solution:
a += b is an addition assignment whose outcome is a = a + b. Same can be done with subtraction,multiplication,division etc.