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
Is php still relevant 2019?
what is constructor
What is php how it works?
What is api laravel?
What is is_null() in php?
Write a program using while loop?
Do csrf tokens expire?
Is php an object or array?
What does empty mean in php?
Can you explain, when to use if-else if-else over switch statements?
how can i develop forum code? any one pleale help me on this question
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
What is the use of preg_match in php?
What is csrf verification?
Tell me how do I check if a given variable is empty?