Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between echo and print statement?

Answer Posted / santha

s there any difference between print and echo in PHP? If so, which should I use and when? If not, why are there two keywords?

UPDATE :

At the downvoters : please read the SO faq. SO was setup also to capture googleable questions. so you shouldn't downvote for that, this question is a valid question, answered on a lot of places and now on SO too.

Of course you can downvote for another reason, but please leave a comment in the lines of -1 : downvoted for .. , cause for now, I'm not understanding the downvotes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is salary fixed or variable cost?

1006


What is php in full?

940


What is the output of the following php code?

937


What's the output of the ucwords function in this example?

1046


Is it possible to protect special characters in a query string?

995


Describe PHP error and logging information?

1085


Can php use gettext?

1030


Are react hooks stable?

940


Is php faster than python?

1032


What is a stored procedure in mysql?

1087


Explain about a search-friendly site looks like?

864


What is abstraction php?

979


What good is polymorphism?

939


How stop the execution of a php scrip?

1015


How to get the directory name out of a file path name?

955