What is the Diff. Between echo() and Print() in PHP?
Answer Posted / ramesh kumar jayaraman
In Php echo is a statement..it doesn't return any
value...And It is faster
because it does not return any value, but print which
always returns 1 and 0.
The print acts like a function and it can be used in complex
expressions.
but echo can not be used in this way.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Write a program in php to reverse a number?
What are the characteristics of php variables?
How to write comment in php?
How do I run a php program in dreamweaver?
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
What is php used for?
Is php good for career?
How do I run a php file?
Do you know what are traits?
Explain $_FILES Superglobal Array?
How to remove white spaces from the beginning and/or the end of a string in php?
Do you know when sessions ends?
What is the use of explode() function?
Why are sessions used?
Tell me how do you define a constant?