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 an example of a variable?
Is salary fixed or variable cost?
What’s the difference between htmlentities() and htmlspecialchars()?
What are static variables in php?
What are the functions for imap?
How many open modes available when a file open in PHP?
What is cookies php?
What is the use of header() function in PHP? What the Limitation of HEADER()?
What is csrf token in php?
How do you compare strings in java?
What is csrf validation?
How many escape sequences are recognized in double-quoted strings in php?
How to check a variable is array or not in php?
How can you tell if a number is even or odd without using any condition or loop?
What are escaping characters?