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)- A15% (4)
- B74% (20)
- C7% (2)
- E4% (1)
Community Discussion
No community discussion yet for this question.