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 difference between echo and print_r in php?
How can we connect to a mysql database from a php script?
How can you submit a form without a submit button?
How do you destroy a particular or all Sessions?
Can I learn php in a month?
How we get browser details of clients machine?
Tell me what does the array operator '===' means?
How does firefox manage cookies?
What is use of preg_replace in php?
What are the rules for naming a php variable?
What is the difference between print() and echo()?
What is the difference between get and post in php?
How to uploaded files to a table?
What is sql injection in php?
Write a program to get second highest number in an array using php?