For printing out strings, there are echo, print and printf.
Explain the differences.
Answer Posted / coder
echo is a language construct(You can see we don't use
paranthesis for echo).echo does not return any value. print
is also a language construct but it returns an integer
value. printf is a function..... echo is considered fast
than print
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain what does $_server means?
Explain Constant in Class?
What does explode do in php?
What is use of header() function in php?
Why php is used in html?
What is singleton class in php?
How does api connect to database?
What does php mean?
What is url encoding and decoding in php?
What are php magic quotes?
How can MYSQL functions be available with PHP?
Is php front end or back end?
What is the importance of "method" attribute in a html form?
Tell me what are sql injections, how do you prevent them and what are the best practices?
How to check a variable is array or not in php?