Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

Vinod
What is the use of Print or Echo Function in PHP?
1 Answer(s)      6 years and 4 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,

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


Ads