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 |
How to increase the execution time of a PHP script?
What is php and its uses?
Does php have block scope?
How does integrate SSL certificate in websites and also how to generate CSR in Local machines? plese give some ideas ASAP.....
Which is better #define or enum?
How to create an array in php?
How does php isset work?
what is the current salary package in India for a PHP programmer who has 1.5 years experience
Is null function in php?
What is the output of the ucwords function in this example?
How to process the uploaded files?
What are the difference between echo and print?