Example 1 — List the Default Handler
Start a plain buffer and print the single handler name.
<?php
ob_start();
$handlers = ob_list_handlers();
ob_end_clean();
echo $handlers[0], PHP_EOL; How It Works
- ob_start() without a callback uses the default handler.
- ob_list_handlers() returns a one-element array.
- We print that name.
- ob_end_clean() ends the buffer.

