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

Last updated 4 years, 12 months ago | 1178 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())