
What is difference between require() and require_once() ?
Last updated 5 years, 11 months ago | 1967 views 75 5

PHP | require() and require_once()
Both require() and require_once() is use to include a file but the difference is required_once() function checks if the file already included or not where require() function does not check.
(same for include_once() and include())