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 is difference between print_r and echo in php?
How to calculate the length of a string?
Write an example to remove html tags from a string in php?
Where sessions stored in PHP?
Why and where do we use htaccess?
Can we use php variable in javascript?
Is it easy to learn php?
What good is polymorphism?
What are the design patterns in php?
What is null value in php?
Is php coding easy?
What do you mean by core php?
How come the code works, but does not for two-dimensional array of mine?
Explain what does the unset() function means?
How can we set and destroy the cookie in php?