Home / CSE MCQs / PHP MCQs :: Discussion

Discussion :: PHP MCQs

  1. Which of the below statements is equivalent to $add += $add ?
  2. A.
    $add = $add
    B.
    $add = $add +$add
    C.
    $add = $add + 1
    D.
    $add = $add + $add + 1

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment