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

What is the difference between rest and soap?

573


Tell me how do I check if a given variable is empty?

541


How to write in a file in php?

537


How can we access the data sent through the url with the post method?

509


What are interfaces in php?

523






Explain about looping in PHP?

605


Is php developer in demand?

510


What is a query in php?

478


Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

1711


What are soundex() and metaphone() functions in php?

484


What is data structure in php?

509


Is php deprecated?

536


What are the difference between abstract class and interface in oops?

515


What is session_register()?

560


What are the main error types in php and how do they differ?

835