PHP MCQ PHP Basic MCQ Question #2366
Single Choice Not Set

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

ID: #2366 PHP Basic MCQ 3,609 views
Question Info
#2366Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A $add = $add
  • B $add = $add +$add
  • C $add = $add + 1
  • D $add = $add + $add + 1
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.