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

Answer Posted / nikunj

echo() have multiple arguments whereas print() have one
arguments. echo() have not any return value whereas print()
return 0 or 1 as per success

Is This Answer Correct ?    83 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the changes in php versions?

532


What are different types of Print Functions available in PHP?

526


How can we pass the variable through the navigation between the pages?

535


Why is facebook still using php?

571


What is strstr php?

521






What is the difference between Session and Cookie?

579


How to get a total number of rows available in the table?

481


When should you use a stored procedure?

498


How do you check if a variable has been set in php?

509


How to turn on the session support?

571


Tell me how can we change the maximum size of the files to be uploaded?

544


Can we use php variable in javascript?

530


What are getters and setters and why are they important?

528


Write a query to find the 2nd highest salary of an employee from the employee table?

641


What is difference Between PHP 5 and 7?

512