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 |
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
Explain what is the static variable in function useful for?
What is the meaning of curl , which is used while connecting with pay pal? and how it works?
How can we send mail using JavaScript?
What is the difference between == and === operator in PHP?
Explain about require and include function?
How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.
Name some of the constants in php and their purpose.
What is the PHP predefined variable that tells the What types of images that PHP supports?
what is the difference between GET and POST?
21 Answers AdVine, Evon Technologies, GVD Infotech, RedAlkemi, SoftSol,
How to call javascript function in php without any event?
Explain me what is the importance of "method" attribute in a html form?