![Click me](https://no-cache.hubspot.com/cta/default/355484/c7bf3bf8-f53f-4932-ac08-70c70da4bdae.png)
Transcribed
Include() vs Require() in PHP
Problem Solver KEY DIFFERENCES Include ( ) Include ( ) doesn't stop the execution of the PHP script when an error occurs . Include ( ) does not throw fatal error Should be used when we want to keep running the PHP script despite any error in existing code VS Require ( ) Require ( ) stops the execution of the PHP script when an error occurs . Require ( ) throw fatal error & prevent further execution of code Use when we want to shut down the PHP script if any error occurs a beproblemsolver.com ×
Include() vs Require() in PHP
shared by BeProblemSolver on Oct 15
0
views
0
faves
0
comments
If you're not sure whether to use include() or require() in your PHP code, you're not alone. Here's a quick rundown of the differences between the two functions and when you should use each one.
Source
Unknown. Add a sourceCategory
TechnologyGet a Quote