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 / hari

There is a slight difference between print and echo which
would depend on how you want to use
the outcome. Using the print method can return a true/false
value. This may be helpful during a
script execution of somesort. Echo does not return a value,
but has been considered as a faster
executed command. All this can get into a rather complicated
discussion, so for now, you can
just use whichever one you prefer

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data abstraction in php?

1056


What are the file upload settings in configuration file?

1041


Is empty check in php?

1035


Which is the best php framework for a beginner?

1009


What is different between software and app

1762


Tell me what is the use of isset() in php?

1073


Do you know how to enable error reporting in php?

988


How many days will it take to learn php?

1069


How php statement is different from php script?

998


What is the actually used php version?

1106


Write a php script to get the largest key in an array?

1037


What is the use of return in php?

915


Explain how can we increase the execution time of a php script?

1006


Is it worth learning php in 2019?

979


How to pass variables and data from php to javascript?

1041