nerdexam
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)
  • A
    14% (5)
  • B
    75% (27)
  • C
    8% (3)
  • D
    3% (1)

Topics

#type juggling#string arithmetic#concatenation#number conversion

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice