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 is the different between count() and sizeof() in php?
What are the different filter functions used to filter a variable?
How many records can be stored in mysql table?
Do you know what is the use of the function 'imagetypes()'?
How to get no. of rows using MYSQL function?
What is difference between mysql_connect and mysqli_connect?
What is include in php?
What is the advantage of runtime polymorphism?
Is time a dependent variable?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
Code to upload a file in PHP?
What is a php trait?
How check variable is set or not in php?
How to pad an array with the same value multiple times?
How do I make a reset button in html?