What is the difference between echo and print statement?
Answer Posted / roshan
echo can take multiple arguments separated by comma whereas print can take one single argument.
echo $x,$y,$z;//This is valid
//print $x,$y; This is invalid
print $x; //This is valid.
Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
What are psrs? Choose 1 and briefly describe it?
How do I install php?
What is the best practice for running mysql queries in php? Consider the risk of sql injection.
How to create a web form?
What is rest api in php?
How to get the ip address of the client?
What is difference between html and php?
What is a http session?
Do you know what is the difference between the include() and require() functions?
How many types of php frameworks are there?
What is php data type?
What does the expression exception::__tostring means?
What is the difference between overloading and overriding in php?
What is php full form?
What is full form of PHP?