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

What is overriding in php?

605


What is $_ get in php?

600


How can we determine whether a php variable is an instantiated object of a certain class?

519


Is not null mysql?

536


What are the advantages of oops in php?

545






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

531


What does $_server mean?

555


Can I learn laravel without php?

562


What is return value in php?

509


Tell us how to create an array of a group of items inside an html form?

557


Why php script is not running in browser?

557


What is an associative array?

549


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

544


Explain me what is the goto statement useful for?

472


What is the use of Php variables?

580