Jump to content

echo vs print


wizzkid

Recommended Posts

[!--quoteo(post=387558:date=Jun 24 2006, 04:03 PM:name=wizzkid)--][div class=\'quotetop\']QUOTE(wizzkid @ Jun 24 2006, 04:03 PM) [snapback]387558[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi Guys,

Can you tell me what is the difference betwen echo and print? and their advantage and disadvantages? :)

Thanks. :)
[/quote]

Hi

Im just learning php and was wondering that question myself. I have been told that they both do the same job. if im wrong im sure someone on here will let me know.

Thanks
Steve
Link to comment
Share on other sites

echo is a language construct, print isn't.

echo doesnt return a value while print returns a value



actually you can view it all here:
[a href=\"http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40\" target=\"_blank\"]What is the difference between echo and print?[/a]

if you had looked up echo and print in the manual, you would have come accross that link :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.