What are the best practices for organizing PHP files and functions to avoid conflicts when including external files?

When including external PHP files, it's important to properly organize your files and functions to avoid naming conflicts. One way to do this is by using namespaces to encapsulate your code and prevent naming collisions with external libraries or other code. By defining namespaces for your functions and classes, you can ensure that they are unique and won't conflict with any included files.

// File: my_functions.php

namespace MyNamespace;

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

```php
// File: external_file.php

include 'my_functions.php';

MyNamespace\myFunction();