1.

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 + 1This question was addressed to me in an online interview.The doubt is from Basics topic in chapter Basics of PHP of PHP

Answer»

Right ANSWER is (B) $add = $add +$add

The explanation is: a += b is an addition assignment WHOSE outcome is a = a + b. Same can be done with subtraction, MULTIPLICATION, division ETC.



Discussion

No Comment Found