PHP include_once Keyword

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

Definition and Usage

The include_once keyword is used to embed PHP code from another file. If the file is not found, a warning is shown and the program continues to run. If the file was already included previously, this statement will not include it again.

Related Pages

The include keyword

The require keyword

The require_once keyword

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

❮ PHP Keywords