nerdexam
Zend

200-550 · Question #208

What is the difference between "print" and "echo"?

The correct answer is B. Print has a return value, echo does not. See the full explanation below for the reasoning.

Question

What is the difference between "print" and "echo"?

Options

  • AThere is no difference.
  • BPrint has a return value, echo does not
  • CEcho has a return value, print does not
  • DPrint buffers the output, while echo does not
  • ENone of the above

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    77% (27)
  • D
    6% (2)
  • E
    14% (5)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice