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 reference variable php?
What is a php array?
Is php a backend?
Is it possible to destroy a cookie?
When to use get and post request?
How to access a specific character in a string using php?
Why do we use session?
Explain how to run the interactive php shell from the command line interface?
Can php variables have numbers?
What is difference between php and html?
How to check an key is exists in array?
How to create a directory?
How do I run a php script?
How to know user has read the email-php?
What is is_null() in php?