Are there any best practices or tutorials available for using include() effectively in PHP?

When using include() in PHP, it is important to follow best practices to ensure efficient and secure code. One common best practice is to use include_once() instead of include() to prevent multiple inclusions of the same file. Additionally, it is recommended to use absolute paths when including files to avoid any potential issues with file paths.

// Using include_once() to prevent multiple inclusions
include_once('path/to/file.php');
```

```php
// Using absolute paths for including files
include($_SERVER['DOCUMENT_ROOT'] . '/path/to/file.php');