![](http://www.studyzone4u.com/assets/image/ads6.jpg)
What is difference between require() and include() ?
Last updated 5 years, 3 months ago | 1469 views 75 5
![Card image](/static/app-assets/images/sz4u-cover.jpg)
What is difference between require() and include() ?
The require() function is identical to include(), except that it handles errors differently. If an error occurs, the include() function generates a warning, but the script will continue execution. The require() generates a fatal error, and the script will stop.
(same for require_once() and include_once())