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.
Related Posts
How many value/values does Boolean data type hold?
When you use the $_POST variable to collect data, the data is visible to
Which type of string can processes special characters inside quotes?
Which one of the following should not be used while sending passwords or other sensitive information?
The ________ function compares the two strings s1 and s2, ignoring the case of the characters.
Which one of the following is the right way to define a constant?
Which is true about var_dump() function?
Join The Discussion