Jump to content


Photo

echo vs print


  • Please log in to reply
2 replies to this topic

#1 wizzkid

wizzkid
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 24 June 2006 - 09:03 PM

Hi Guys,

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

Thanks. :)

#2 imhere2009

imhere2009
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 24 June 2006 - 09:06 PM

[!--quoteo(post=387558:date=Jun 24 2006, 04:03 PM:name=wizzkid)--][div class=\'quotetop\']QUOTE(wizzkid @ Jun 24 2006, 04:03 PM) View Post[/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
Are you a freelancer looking for work? or are you a web designer looking for someone to do your project? visit www.webgalour.com, signup is free and recieve $5 Bonus.
Our service is 100% free.

#3 Koobi

Koobi
  • Staff Alumni
  • Advanced Member
  • 419 posts
  • LocationColombo, Sri Lanka | South Asia

Posted 24 June 2006 - 09:11 PM

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 :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users