What are the potential pitfalls of including classes in PHP using the include function?

One potential pitfall of including classes in PHP using the include function is that it can lead to naming conflicts if the same class is included multiple times in different files. To solve this issue, you can use the `require_once` function instead of `include` to ensure that the class is only included once.

// Using require_once to include a class file
require_once 'path/to/YourClass.php';