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

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 04-03-2012, 02:00 AM   #1
maxsamuel
Registered User
 
Join Date: Mar 2012
Posts: 88
Well I have found 3 major differences between echo and print:

Echo:

1) Does not return value.

2) Faster than 'print'.

3) Can take multiple arguments.

Print:

1) It returns value.

2) Slower than 'echo'.

3) Cannot take multiple arguments.
__________________

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.
maxsamuel is offline   Reply With Quote

Old 05-26-2012, 06:28 AM   #2
spaculus
Registered User
 
Join Date: May 2012
Location: India
Posts: 64
Quote:
Originally Posted by maxsamuel View Post
Well I have found 3 major differences between echo and print:

Echo:

1) Does not return value.

2) Faster than 'print'.

3) Can take multiple arguments.

Print:

1) It returns value.

2) Slower than 'echo'.

3) Cannot take multiple arguments.
your points of difference are very best.

Die is used for hide anything in below part during execution.
spaculus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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


All times are GMT -7. The time now is 05:22 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.