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

What is an example of a variable?

1062


Is salary fixed or variable cost?

1062


What’s the difference between htmlentities() and htmlspecialchars()?

1147


What are static variables in php?

1074


What are the functions for imap?

1169


How many open modes available when a file open in PHP?

1213


What is cookies php?

1024


What is the use of header() function in PHP? What the Limitation of HEADER()?

1095


What is csrf token in php?

1136


How do you compare strings in java?

985


What is csrf validation?

1148


How many escape sequences are recognized in double-quoted strings in php?

1038


How to check a variable is array or not in php?

1066


How can you tell if a number is even or odd without using any condition or loop?

1045


What are escaping characters?

1019