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.

This Question Belongs to PHP >> Basic PHP

Join The Discussion

Related Questions on Basic PHP