WHAT IS THE DIFFERENCE BETWEEN INCLUDE() AND REQUIRE()

Royce Roy

Total Post:51

Points:255
Posted by  Royce Roy
PHP 
PHP
 298  View(s)
Ratings:
Rate this:
  1. Royce Roy

    Post:51

    Points:255
    What is the difference between include() and require()

    When file is not found using include() method, then it will show warning, but program execution will continue whereas in require(), it will cause fatal error and halt the program execution.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!