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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which will check if a function exists?

862


What is implode() in php?

849


Which function is used in php to search a particular value in an array?

726


Is null empty php?

778


If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?

694


Which is incorrect with respect to separating php code and html?

765


Explain Whitespace Characters?

836


What is the value for this auto incremented field user_pri_id?

734


Tell me what are the correct and the most two common way to start and finish a php block of code?

757


What are the types of variables in php?

828


What happens when submit button is clicked?

735


Is strcmp case sensitive?

752


Is php a low level language?

747


Does php have future?

774


How can php and html interact?

833