Difference among echo, print and printf.
Answer / 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 |
Explain me what is the w3c?
Is php dying 2018?
write a program to print [123] [456] [789] note : braces also need to be printed
What is list function with their uses.
how to insert logout time when browser close
What is baseurl?
Why would we use === instead of ==?
Tell me what library is used for pdf in php?
How can we submit a form without a submit button?
2 Answers Rushmore Consultancy,
How to replace a substring in a given string in php?
Does php support inheritance?
Who is known as the father of php?