PHP require Keyword

PHP Keywords : Use require to add a footer to a page

Definition and Usage

The require keyword is used to embed PHP code from another file. If the file is not found, a fatal error is thrown and the program stops.

Related Pages

The include keyword

The include_once keyword

The require_once keyword

Read more about including files in our PHP Include Files Tutorial.

❮ PHP Keywords