Vinod
What is the use of Print or Echo Function in PHP?
1 Answer(s)      4 years and 2 months ago
Posted in : PHP

Hi,

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

Thanks,

Advertisement
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,