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

Last updated 3 years, 6 months ago | 750 views 75     5

Tags:- PHP

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