wizzkid Posted June 24, 2006 Share Posted June 24, 2006 Hi Guys,Can you tell me what is the difference betwen echo and print? and their advantage and disadvantages? :)Thanks. :) Quote Link to comment https://forums.phpfreaks.com/topic/12824-echo-vs-print/ Share on other sites More sharing options...
imhere2009 Posted June 24, 2006 Share Posted June 24, 2006 [!--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]HiIm 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.ThanksSteve Quote Link to comment https://forums.phpfreaks.com/topic/12824-echo-vs-print/#findComment-49172 Share on other sites More sharing options...
Koobi Posted June 24, 2006 Share Posted June 24, 2006 echo is a language construct, print isn't.echo doesnt return a value while print returns a valueactually 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 :) Quote Link to comment https://forums.phpfreaks.com/topic/12824-echo-vs-print/#findComment-49174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.