PHP Interview Questions and Answers

 

What is the main difference between require() and require_once()?

require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it.
(same for include_once() and include())

Posted by:Richards