nerdexam
Zend

200-550 · Question #92

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

The correct answer is B. Print returns length of data printed and 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 returns length of data printed and echo does not
  • CEcho returns length of the data printed and print does not
  • DPrint buffers the output, while echo does not
  • ENone of the above

How the community answered

(27 responses)
  • A
    15% (4)
  • B
    74% (20)
  • C
    7% (2)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-550 Practice