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


Please Help Members By Posting Answers For Below Questions

What are the data types in php?

743


Does mysql need php?

689


What is php session id?

709


Tell me how can we get the error when there is a problem to upload a file?

709


What does the expression exception::__tostring means?

760


What is the scope of a variable defined in a function?

749


What is difference between html and php?

707


What are majic methords in php?

823


What is the use of mysql_real_escape_string() function?

701


How to pad an array with the same value multiple times?

668


How are sessions maintained?

715


What is json php?

756


Steps for the payment gateway processing?

744


Are php sessions secure?

719


What are the popular frameworks in php?

704