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
What is the use of Mbstring?
Which function would you use to determine the length of a string in php?
Suppose your zend engine supports the mode ?> Then how can you configure your php zend engine to support Mode ?
Is key exist in array php?
What is preg_match?
What is the difference between exception::getmessage and exception::getline?
Explain the difference between array_merge() and array_combine()?
Which function would you use to replace a record in a database in php?
What is the difference between get and post in php?
What is a composer in PHP?
How to check a key exist in an array?
How to execute a function in php?
Does PHP 5 support exceptions? State Whether True or False?
Is php an oop?
Which is correct about mysqli and pdo?