Answer Posted / amit kumar gaur
echo is the primitive of them and just output the content,
you can pass the multiple parameter.
<? php echo 'Welcome','to','india';?>
print is a construct(parentheses are optional)but it return
true and false,print does not the miultiple parameters.
printf is a function not a construct and allow advantage
formatted output.
echo is faster than others.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What does $globals mean?
What is the function file_get_contents() useful for?
What are the rules to declare a php variables?
What is the difference between single-quoted and double-quoted strings in php?
How can you pass a variable by reference?
What are the types of variables in php?
How is it possible to cast types in php?
What is constructors and destructors?
Do you have to initialize variables in php?
Explain php parameterized functions.
Is php better than python?
Write a program in php to reverse a number?
Tell me what is the difference between get and post?
Do while loops php?
What is member function?