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

Answer Posted / devendrarjadav

The include_once() function includes and evaluates the
specified file during the execution of the php script. It's
behavior is similar to the include() function but the only
difference is that if the code from a file has already been
included, it will not be included again.

Is This Answer Correct ?    87 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many escape sequences are recognized in double-quoted strings?

761


Who is known as the father of php?

744


What is Different between Joomla And Magento?

2477


Explain converting an object?

788


Swap two variables value without using third variable in php ?

802


What are soundex() and metaphone() functions in php?

652


Describe PHP error and logging information?

739


Which php function will attach one file to another?

720


How to make horizonatl menu and vertical menu responsive

2053


What is design pattern? Explain all including singleton pattern?

719


what is the use of include_once in php?

739


Which is a perfect example of runtime polymorphism?

701


How will you calculate days between two dates in PHP?

768


How to calculate the difference between two dates using php?

729


Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

747