Zend
200-710 · Question #19
What is the output of the following code? echo "22" + "0.2", 23 . 1;
The correct answer is B. 22.2231. See the full explanation below for the reasoning.
Data Formats & Types
Question
What is the output of the following code?
echo "22" + "0.2", 23 . 1;
Options
- A220.2231
- B22.2231
- C22.2.231
- D56.2
How the community answered
(36 responses)- A14% (5)
- B75% (27)
- C8% (3)
- D3% (1)
Topics
#type juggling#string arithmetic#concatenation#number conversion
Community Discussion
No community discussion yet for this question.