What are the potential issues with including files in PHP scripts and how can they be resolved?

Issue: One potential issue with including files in PHP scripts is the risk of including the same file multiple times, leading to redeclaration errors or unexpected behavior. This can be resolved by using the `require_once` or `include_once` functions, which ensure that the file is included only once.

// Using require_once to include a file
require_once 'file.php';