What is the Diff. Between echo() and Print() in PHP?

Answer Posted / suresh.chaluvadi

when u use print(),a value of 1 or 0 will be returned upon
success or failure of the the print command.where as echo()
just does what its told without letting u know whether or
not it worked properly.

Is This Answer Correct ?    126 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I escape data before storing it in the database?

572


How to delete file in php?

522


How can we submit from without a submit button?

574


What is the use of header() function in PHP? What the Limitation of HEADER()?

567


What is the function of mysql_real_escape_string in php?

475






What is the use of strpos in php?

550


How can cross site request forgery csrf be prevented?

485


Which programming language does php resemble to?

532


Which one is best framework for php?

496


What is difference Between PHP 5 and 7?

512


Is python easier than php?

539


How do you parse and process html/xml in php?

550


What is json php?

526


Which function will you use to create an array?

513


How to get useful error messages in php?

562