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 are php filters?

717


What are the different types of statements that are present in php?

778


Which is the best web server?

736


How can we display the output directly to the browser?

737


What is difference between static and final in php?

767


Why delimiter is used in mysql?

790


What does $globals mean?

739


Write a program in php to check whether a number is prime or not?

719


What is the best way to change the key without changing the value of a php array element?

757


Is strcmp case sensitive?

741


What is list in PHP?

852


Why should I store logs in a database rather than a file?

792


Who is the father or inventor of php?

838


Which php framework is best for beginners?

773


Explain the difference between array_merge() and array_combine()?

749