What is the use of Print or Echo Function in PHP?

Hi,

Can anyone explain what is the use of print or Echo function in PHP? Please provide online reference for this.

Thanks,

View Answers

March 3, 2011 at 10:34 AM

Hi,

Although the use of both Print or Echo Function in PHP are same. But on comparing we can say that echo function in php is bit faster then print command, as it does not return any value. On the other hand Print command returns true or false (Boolean) value that takes some time to process.

Thanks,









Related Tutorials/Questions & Answers:
Advertisements