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 are the differences between include() and include_once
() functions?

Answers were Sorted based on User's Feedback



What are the differences between include() and include_once () functions?..

Answer / anjali ashok arote

include()function is more time consuming because of redeclaration is more in include() file ...
where as include_once()function only declare one time...
in include()function refreshment of file is needed many time
but in include_once()function refreshment of page is only one time

Is This Answer Correct ?    0 Yes 0 No

What are the differences between include() and include_once () functions?..

Answer / nishit

file1.php:
function check()
{
echo 'hello nishit';
}
file2.php
include('file1.php');
check();

file3.php
include('file1.php');[this is worn we should use here
include once.]
include('file2.php');
check();

while execute file3.php see what the error:

Is This Answer Correct ?    4 Yes 5 No

Post New Answer

More PHP Interview Questions

Explain what is the difference between $var and $$var?

0 Answers  


What is abstract class php?

0 Answers  


What is a php session?

0 Answers  


Difference between mysql_connect and mysql_pconnect?

0 Answers  


what mode to use when creating dirs with mkdir?

1 Answers  


What is the use of explode() function?

0 Answers  


What are the differences between GET and POST methods in form submitting?

0 Answers  


What function do we use to find length of string, and length of array?

0 Answers  


Do loops php?

0 Answers  


Tell me what does accessing a class via :: means?

0 Answers  


what is nl2br?

4 Answers  


What is MVC structure in Magento?

4 Answers  


Categories