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 include and include_once ?
Which is one is good in terms of performance ?

Answer Posted / ankit

By Using include() function we can include a file any
number of times.But if you will face a Fatal error that is
a connect() or any function can not be redeclared then just
use include_once(), it will include that file only once,
then it doesn't matter how many times u include that
file. :)

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how is the ternary conditional operator used in php?

1061


How to convert strings to upper or lower cases?

1004


What is mysqli php?

1019


How to open a file for writing?

1063


Do you know what's the difference between __sleep and __wakeup?

1002


Are react hooks stable?

944


What is the difference between == and === operator in PHP?

989


What is abstraction php?

981


What is class extend in php?

1049


What’s the special meaning of __sleep and __wakeup?

1023


How we can retrieve the data in the result set of mysql using php?

1138


What u mean by query?

1041


What is the use of extract function in php?

976


Tell me when a conditional statement is ended with an endif?

903


Explain Traits in PHP?

954