Discussion Forum | Board Infinity

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

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

1 Like

The main difference between require() and require_once() function is that require() function will include the file irrespective of whether the file is already included or not whereas require_once() function will check whether the file is already included or not, if it is already included then it won’t include the file.