What is the Diff. Between echo() and Print() in PHP?
Answer Posted / sreedevi
print is a construct but it returns True on success
outputr False if it was unable to print the output string
echo is faster comparing with print .
print doesnot takes multiple parameters
| Is This Answer Correct ? | 31 Yes | 8 No |
Post New Answer View All Answers
What is an abstract class in php?
What kind of things have you done on the social side?
What is the purpose of basename() function in PHP?
How can php and html interact?
How we get ip address of client, previous reference page etc?
What is use of in_array() function in php?
What is composer phar?
Explain whether it is possible to share a single instance of a memcache between multiple php projects?
Is php a programming language?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
Is key in array php?
Explain the differences between get and post methods?
How to return a value back to the function caller?
How does session work in php?
How is a session id generated?