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

Last updated 2 years, 4 months ago | 373 views 75     5

Tags:- PHP

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())