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 properties in php?
Explain me how failures in execution are handled with include() and require() functions?
What are the advantages of triggers in php?
What is the use of preg_match in php?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
How to fix "headers already sent" error in php
How variables are passed through arguments?
What is php string function?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
Does php support polymorphism?
Which function would you use to format date information in php?
Code to upload a file in PHP?
How to select a database?
How can you create a session in php?
What is the use of ajax in php?