Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-16-2018, 09:07 AM   #1
ajaxdns
Registered User
 
Join Date: Apr 2018
Posts: 1,360
What are the difference between echo and print?

Difference between echo and print in PHP

echo in PHP
echo is language constructs that display strings.
echo has a void return type.
echo can take multiple parameters separated by comma.
echo is slightly faster than print.
Print in PHP
print is language constructs that display strings.
print has a return value of 1 so it can be used in expressions.
print cannot take multiple parameters.
print is slower than echo.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
ajaxdns is offline   Reply With Quote

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the difference between echo and print? ajaxdns PHP / mySQL 0 07-31-2018 08:35 AM
What are the difference between echo and print? designpluz PHP / mySQL 0 07-19-2018 11:07 PM
What are the difference between echo and print? sydneyearplug PHP / mySQL 0 05-30-2018 09:45 PM
What are the difference between echo and print? sunled PHP / mySQL 0 05-16-2018 09:58 PM
What is the difference between "echo" and "print" in PHP? tmpooja PHP / mySQL 0 04-22-2018 10:40 AM


All times are GMT -7. The time now is 01:26 AM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.