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

Answer Posted / joshna

Include():by using this include()we can embed external page
in the current script multiple time,if the embeded file is
not available it returns a warning message and executes the
rest of the statements.The include_once() is same as include
() but it includes the external file only one time and
ignores the remaining all include_once statement which
contains the same file name.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between core php and framework?

708


What is the basic syntax of Php?

831


What is the difference between echo print and print_r in php?

739


What is self in php?

811


Does php class need constructor?

701


What is the use of array_search() in php?

704


What is use of count() function in php?

767


What is php used for?

713


Where are the persistent cookies stored on your computer?

769


Is php strongly typed?

804


Tell me what is the difference between the functions strstr() and stristr()?

747


Is not null in php?

688


When sessions ends?

724


Is array a key php?

706


Explain about objects in PHP?

756