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

Answer Posted / sreedevi

print is a construct but it returns True on success
outputr False if it was unable to print the output string
echo is faster comparing with print .
print doesnot takes multiple parameters

Is This Answer Correct ?    31 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are php expressions?

608


What are hooks in php?

529


Tell me how to create a text file in php?

550


When do you use define() and when do you use const. What are the main differences between those two?

577


What are the options to transfer session ids?

592






Is it possible to extend the execution time of a php script?

500


What is button in html?

543


What is difference between Method overriding and overloading in PHP?

547


Why does php start with variables?

552


Tell me is it possible to remove the html tags from data?

532


What is a model in php?

542


Could we start a variable with number like $4name?

517


Explain why would we use === instead of ==?

502


Why do we use query?

504


Can php variables have numbers?

535