Jump to content

Archived

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

wizzkid

echo vs print

Recommended Posts

Hi Guys,

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

Thanks. :)

Share this post


Link to post
Share on other sites
[!--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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

×

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.