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

What is the phpstorm?

938


my english is not too good then what we apply for a php programer post

2553


What is the use of extract function in php?

926


Tell me how comfortable are you with writing html entirely by hand?

871


What are the different types of PHP arrays?

1039


What is the definition of a session?

927


What is composer used for?

900


What does it mean when it says the csrf token is invalid?

859


Why did you choose this particular career path?

8756


Does php need apache?

884


How to select a database in php?

1027


Does empty check for null?

912


What is a base url?

900


How to terminate the execution of a script in PHP?

1004


What is variable and data type?

968