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 current stable version of php?
What is the difference between substr() and strstr()?
Tell me how can we determine whether a variable is set?
What is the basic syntax of Php?
Why does php need server?
Explain what does $_server means?
Why is php used?
How is it possible to propagate a session id?
Tell me how can you pass a variable by reference?
What are headers in php?
Tell me how can we display information of a variable and readable by human with php?
What is php regular expression?
What is list function with their uses.
What are the string functions in php?
Is laravel easy to learn?