What is the difference between echo and print statement?
Answer Posted / santha
s there any difference between print and echo in PHP? If so, which should I use and when? If not, why are there two keywords?
UPDATE :
At the downvoters : please read the SO faq. SO was setup also to capture googleable questions. so you shouldn't downvote for that, this question is a valid question, answered on a lot of places and now on SO too.
Of course you can downvote for another reason, but please leave a comment in the lines of -1 : downvoted for .. , cause for now, I'm not understanding the downvotes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is salary fixed or variable cost?
What is php in full?
What is the output of the following php code?
What's the output of the ucwords function in this example?
Is it possible to protect special characters in a query string?
Describe PHP error and logging information?
Can php use gettext?
Are react hooks stable?
Is php faster than python?
What is a stored procedure in mysql?
Explain about a search-friendly site looks like?
What is abstraction php?
What good is polymorphism?
How stop the execution of a php scrip?
How to get the directory name out of a file path name?