nerdexam
Zend

200-550 · Question #77

What is the output of the following code? var_dump(boolval(-1));

The correct answer is A. bool(true). See the full explanation below for the reasoning.

Question

What is the output of the following code? var_dump(boolval(-1));

Options

  • Abool(true)
  • Bbool(false)

How the community answered

(19 responses)
  • A
    79% (15)
  • B
    21% (4)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice