What is the difference between echo and print statement?
Answer Posted / hari
There is a slight difference between print and echo which
would depend on how you want to use
the outcome. Using the print method can return a true/false
value. This may be helpful during a
script execution of somesort. Echo does not return a value,
but has been considered as a faster
executed command. All this can get into a rather complicated
discussion, so for now, you can
just use whichever one you prefer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of break and continue statement?
What is sql injection in php?
What are the difference between array_keys() and array_key_exists() in php?
Explain Traits in PHP?
Is php pass by reference or value?
What are php filters?
Is php a dying language?
What is php namespace?
What is phpsessid?
What is varchar mysql?
What are the encryption functions in php?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
List the different types of print functions available in php?
Explain converting an object?
What is difference between echo and print in php?