What is the difference between echo and print statement?
Answer Posted / hari
There is a slight difference between print and echo which
would depend on how you want to use
the outcome. Using the print method can return a true/false
value. This may be helpful during a
script execution of somesort. Echo does not return a value,
but has been considered as a faster
executed command. All this can get into a rather complicated
discussion, so for now, you can
just use whichever one you prefer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is data abstraction in php?
What are the file upload settings in configuration file?
Is empty check in php?
Which is the best php framework for a beginner?
What is different between software and app
Tell me what is the use of isset() in php?
Do you know how to enable error reporting in php?
How many days will it take to learn php?
How php statement is different from php script?
What is the actually used php version?
Write a php script to get the largest key in an array?
What is the use of return in php?
Explain how can we increase the execution time of a php script?
Is it worth learning php in 2019?
How to pass variables and data from php to javascript?