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 the difference between echo, print and printf()?
What are the new features in php 7?
How many keywords are there in php?
Where php language is used?
What is a php certification?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
What is polymorphism in oop php?
Explain array_uintersect()?
Why is facebook still using php?
How can we change the maximum size of the files to be uploaded?
How does php strcmp work?
Which software is best for php?
What is nginx and what is it used for?
What is phpsessid?
Are sessions stateless?