Home » PHP » PHP Introduction » Question
  1. Which of the below statements is equivalent to $sum+= $sum ?
    1. $sum= $sum+$sum
    2. $sum= $sum
    3. $sum= $sum+ $sum+ 1
    4. $sum= $sum+ 1
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.