What is the difference between echo and print in PHP?
- A echo can take multiple arguments and returns nothing; print takes one argument and returns 1
- B print is faster
- C echo returns a value
- D They cannot both output strings
Answer
echo can take multiple arguments and returns nothing; print takes one argument and returns 1
Because print returns a value it can be used in expressions, though this is rarely useful in practice.





