What is the main difference between require() and include()?
require() | include() |
---|---|
If a required file not found, it will through a fatal error & stops the code execution | If an essential file not found, It will produce a warning and execute the remaining scripts. |
BY Best Interview Question ON 20 Jul 2019