What is the best practice for handling nested include statements in PHP to avoid losing access to classes?

When working with nested include statements in PHP, it's essential to use the `require_once` or `include_once` functions to ensure that classes are not redeclared or lost due to multiple inclusions. This practice helps prevent conflicts and ensures that all classes are accessible throughout the codebase.

// File: index.php

require_once 'ClassA.php';
require_once 'ClassB.php';

// Your code here