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
How to return ascii value of character in php?
Which is better #define or enum?
What is the difference between $message and $$message in php?
What is the use of imagetypes() method?
What is php mean?
Is runtime polymorphism overriding?
What’s the difference between htmlentities() and htmlspecialchars()?
Will a comparison of an integer 12 and a string "13" work in php?
What are php functions?
What is faster in php?
Which is the dependent variable?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
What is explode() in php?
What is difference between rest api and restful api?
What are the rules to declare a php variables?