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
How can we determine whether a php variable is an instantiated object of a certain class?
What is php oops concepts?
Is apache needed for php?
Can we use php variable in javascript?
What is the use of header() function in php?
What are examples of independent and dependent variables?
Tell me how can we get the error when there is a problem to upload a file?
Tell us how to set cookies in php?
What is user defined function in php?
What is mysqli_real_escape_string?
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
How is a constant defined in a PHP script?
Where php language is used?
How do you call a constructor for a parent class?
How to check an key is exists in array?