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

Ads
 

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,

Ads









Related Tutorials/Questions & Answers:
What is the use of Print or Echo Function in PHP?
echo- Not a function
Advertisements
How to use the PHP filetype() Function
ModuleNotFoundError: No module named 'print-function'
What is the microtime() Function PHP ?
What is use of a abstract variable?
What is use of a abstract variable?
What is the use of Bluetooth technology
What is Hibernate and what is its use?
What is Hibernate and what is its use?
What is the use of Java?
what is use of push in javascript
what is use of push in javascript
What is the use of Hibernate is used?
ModuleNotFoundError: No module named 'phpy'
What is the use of data science?
What is the use of JDK
what is the use of Spring Framework
what is the correct format of charAt() function?
how to write a function to print for finding the longest palindrome in the given string
What is the use of Hibernate Native SQL?
What is use of method overloading and overriding?
What is the use of Hibernate Framework in Java
What is the real use of Java Program
What is the real use of Java Program
What is the use of R Programming Language?
What is use of big data analytics in healthcare?
What is Java?
what is the use of clone() in real time scenario?
what is the use of Hibernate Sessionfactory close() method?
What is Angular and Why Use It?

Ads