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
https://forums.phpfreaks.com/topic/12824-echo-vs-print/#findComment-49172
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
https://forums.phpfreaks.com/topic/12824-echo-vs-print/#findComment-49174
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.