What potential issues can arise when using include statements in PHP functions?

When using include statements in PHP functions, a potential issue that can arise is that the included file may not have access to the function's local variables. To solve this problem, you can use the `include` statement inside the function and pass any necessary variables as parameters to the included file.

function myFunction($param) {
    include 'included_file.php';
}

myFunction($param);