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

Write a program to display reverse of any number?

899


Does php pass arrays by reference?

1092


What is php good for?

916


What is strstr php?

969


How I can control asset documents without GR/IR?

1621


How can you execute php script from the command line?

1001


What is $_session in php?

995


Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?

1135


How to concatenate two strings in php?

1067


Which is better python or php?

994


What is difference between html and php?

925


Explain soundex() and metaphone().

1018


How to remove duplicate values from php array?

1121


What advance thing in php7?

949


Tell me what types of loops exist in php?

1119