What potential pitfalls should be considered when including functions in PHP scripts?

One potential pitfall when including functions in PHP scripts is namespace conflicts, where two functions with the same name are included from different files. To avoid this issue, you can use namespaces to encapsulate your functions and prevent conflicts.

// File: functions.php
namespace MyFunctions;

function myFunction() {
    // Function implementation
}
```

```php
// File: script.php
require 'functions.php';

// Call the function using the namespace
MyFunctions\myFunction();