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

Answer Posted / hiren

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is php written in?

577


Explain what does the unset() function means?

570


What are the differences between GET and POST methods?

530


Is php used for frontend or backend?

525


What exactly is validating and sanitizing?

616






Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

507


What are headers in php?

522


Does php support polymorphism?

498


What does PEAR stands for?

638


How can you tell if a number is even or odd without using any condition or loop?

515


What is reference variable php?

494


Does php need html?

529


Explain about switch statement in PHP?

584


Is laravel better than codeigniter?

541


What is the content of /etc directory?

558