What is the difference between "echo" and "print" in php?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
sudipta sanyalRank #1,945 · 753 reputationPosted Apr 25, 2014, 2:15 AM EDT
print - can only output one string, and returns always 1
Sanjay SinghRank #779 · 2.9K reputationPosted Apr 25, 2014, 2:33 AM EDT
thank you..
Munesh SharmaRank #174 · 13.9K reputationPosted Apr 25, 2014, 2:35 AM EDT
http://www.w3schools.com/php/php_echo_print.asp
sudipta sanyalRank #1,945 · 753 reputationPosted Apr 25, 2014, 2:44 AM EDT
@Sanjay singh
please marked as Accepted