Examveda
Examveda

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

A. $add = $add

B. $add = $add +$add

C. $add = $add + 1

D. $add = $add + $add + 1

Answer: Option B

Solution(By Examveda Team)

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

Join The Discussion

Related Questions on Basic PHP