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
What is == and === in php?
How to create a session? How to set a value in session?
Is php a mvc?
How can I use single quotes in single quotes in php?
What is the difference between $argv and $argc? Give example?
Explain about the $_GET variable of PHP?
Explain about require and include function?
How is a constant defined in a PHP script?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?
Explain how can we increase the execution time of a php script?
How to convert a string to uppercase in php?
Which function would you use to read a line of data from a file in php?
What is the best way to test the strpos() return value in php?
How come the code works, but does not for two-dimensional array of mine?
How can cross site request forgery csrf be prevented?