For printing out strings, there are echo, print and printf.
Explain the differences.
Answer Posted / hardik
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 and printf
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What does csrf token mismatch mean?
What is the expansion of LAMP?
Should I learn php before wordpress?
Php says that an array is an ordered map. But how the values are ordered in an array?
How to include a file code in different files in php?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
What is the difference between require_once and require in php?
What is pdo in php why use?
Where can I learn php?
How to remove the new line character from the end of a text line in php?
Explain me what is the w3c?
How you can update memcached when you make changes to php?
Why do we use javascript in php?
What are the benefits of using queries?
What language is similar to php?