Files
developer-roadmap/roadmaps/php/content/include_once@SwtLDgyPmDry20qS4FBfH.md

7 lines
421 B
Markdown

# include_once
`include_once` works like `include` but skips inclusion if the file has already been loaded. It avoids redeclaring functions or classes when the same file is referenced multiple times across a codebase. It emits a warning rather than a fatal error if the file is not found.
Visit the following resources to learn more:
- [@official@include_once](https://www.php.net/manual/en/function.include-once.php)