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)- A15% (9)
- B76% (47)
- C3% (2)
- D5% (3)
- E2% (1)
Topics
#print#echo#output functions#return value
Community Discussion
No community discussion yet for this question.