How can you include a class from an external file in PHP?

To include a class from an external file in PHP, you can use the `require_once` or `include_once` function to include the file that contains the class definition. This allows you to use the class in your current PHP file without having to redefine it.

// Include the file containing the class definition
require_once 'path/to/external/file.php';

// Now you can create an instance of the class and use its methods
$object = new ClassName();
$object->method();