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 |
What is php and how do you use it?
What is the default session out time?
How to check a key exist in an array?
Swap two variables value without using third variable in php ?
Use of Session
What is indexing how many types?
3 Answers DLF, Infosys, Net Solution, Vcare,
What is strlen function in php?
Can you give example for trait in php?
What is http get and post?
Why do we use sessions in php?
Xplain is it possible to use com component in php?
What is the output of the ucwords function in this example?