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
Which is better session or cookie?
Does php support function overloading?
What backslash character will match whitespace?
What is different types of visibility?
Is ruby on rails php?
Which functions are used to remove whitespaces from the string?
What is php mainly used for?
What is a php object?
sort term descripttion form, report and uery
How cookies are transported from browsers to servers?
How long does a php session last for?
What is strcmp?
Explain the difference between $message and $$message?
How to repeat a string to a specific number of times in php?
Why overriding is called runtime polymorphism?