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 are the advantages of oops in php?
How do you use end in python?
What is the php function that removes the first element of the array and returns it?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
Does php support multithreading?
What is $_ env in php?
What is composer json?
Which operator is used to concatenate two strings in PHP?
How stop the execution of a php scrip?
Is php a strongly typed language?
How is session id stored in browser?
What is a lambda function in php?
What is $_session in php?
What are the advantages of object-oriented programming in php?
Which php framework is fastest?