What is the best practice for accessing existing objects from an included file in PHP?

When including a PHP file that contains objects, the best practice for accessing those objects is to use the `global` keyword to access them within the included file. This ensures that the objects are accessed in the correct scope and prevents any potential naming conflicts. By using `global`, you can access the objects defined in the including file without having to redefine them within the included file.

// including_file.php
class MyClass {
    public $property = 'Hello';
}

// included_file.php
include 'including_file.php';

function accessObject() {
    global $obj;
    $obj = new MyClass();
    echo $obj->property;
}

accessObject();