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

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:
What is the use of Print or Echo Function in PHP?
What is the difference between PHP4 and PHP5?
Advertisements
Print or Echo Functions in PHP
echo- Not a function
echo and print statement
echo and print statement
What is the use of friend function?
PHP Echo Function
PHP Introduction to PHP Echo and print Tutorial
For printing out strings, there are echo, print and printf. Explain the differences.
ModuleNotFoundError: No module named 'print-function'
ModuleNotFoundError: No module named 'phpy'
What is the microtime() Function PHP ?
PHP Echo Variables
New features in PHP5?
What is difference between a PROCEDURE & FUNCTION ?
What is the functionality of MD5 function in PHP?
how to write a function to print for finding the longest palindrome in the given string
what is the correct format of charAt() function?
What type of headers have to be added in the mail function to attach a file?
Print
print
Artifacts of echo
How to use the PHP filetype() Function
Echo 2
write a program to use for loop print **********========== in c language
PHP Variable Outside Function
function
ModuleNotFoundError: No module named 'echo'
javascript echo php
What is Hibernate and what is its use?
What is Hibernate and what is its use?
NSLog print NSString example code
Version of echo>echoserver dependency
how to make paging with function ?
PHP Function Arguments
python print dots with printf style
PHP String Function
how to print spark dataframe data
how to print spark dataframe data
Eval () PHP Function, Example of Eval () PHP Function
ModuleNotFoundError: No module named 'django-echo'
ModuleNotFoundError: No module named 'metakernel_echo'
ModuleNotFoundError: No module named 'middlefield-echo'
ModuleNotFoundError: No module named 'pyppl-echo'
ModuleNotFoundError: No module named 'pytest-echo'
ModuleNotFoundError: No module named 'Bluetin-Echo'
ModuleNotFoundError: No module named 'django-echo'
ModuleNotFoundError: No module named 'echo_api'
ModuleNotFoundError: No module named 'echo-kernel'

Ads