nerdexam
Zend

200-710 · Question #17

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.

PHP Basics

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

(62 responses)
  • A
    15% (9)
  • B
    76% (47)
  • C
    3% (2)
  • D
    5% (3)
  • E
    2% (1)

Topics

#print#echo#output functions#return value

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice