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 would occur if a fatal error was thrown in your php program?
Which is best framework for php?
Does php have a future?
What is the difference between $message and $$message in php?
How do I clear my browser session?
What is variable give example?
Declare a new variable in php equal to the number 3;
What is smarty?
What are the types of variables in php?
What are the functions to be used to get the image's properties (size, width and height)?
Tell me how do you define a constant?
Who created numbers?
What does the array operator '===' means?
Which library is used in php to do various types of image work?
What is php session id?