Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

Which of the below statements is equivalent to $add += $add?
a) $add = $add + $add + 1
b) $add = $add +$add
c) $add = $add + 1
d) $add = $add

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

Join The Discussion