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 |
Why do we use query?
How to execute a php script from the command line?
What is basic php?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
What is the latest version of php?
Explain Traits in PHP?
Why we are using PHP than others for web developing?
What is php simple definition?
How can you get the size of an image in PHP?
Tell me what is the use of "enctype" attribute in a html form?
What is the difference between php traits vs interfaces?
how to use http headers inside php? Write the statement through which it can be added?