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

Answer Posted / anjan

The include_once() statement includes and evaluates the
specified file during the execution of the script. This is a
behavior similar to the include() statement, with the only
difference being that if the code from a file has already
been included, it will not be included again. As the name
suggests, it will be included just once.

Is This Answer Correct ?    23 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the values are ordered in an array?

776


How can you propagate a session id?

716


Can age be a variable?

704


How to set a page as a home page in a php based site?

688


What is the importance of "method" attribute in a html form?

770


How big is nvarchar max?

758


How to submit form without a submit button.

719


Is php coding easy?

679


Tell me what are the different types of errors in php?

698


Is null function in php?

744


Is age an interval or ratio?

694


Tell me how do I check if a given variable is empty?

704


What is use of isset function in php?

768


What is strlen php?

704


How to terminate the execution of a script in PHP?

766