Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return a formatted string
<?php sprintf(string $format, mixed ...$values): string
<?php             return '';

        }



        $throwableString = sprintf(

            "%s: %s in file %s on line %d\n\n%s\n",

            get_class($this->throwable),

            $this->throwable->getMessage(),

            $this->throwable->getFile(),

            $this->throwable->getLine(),

            $this->report->getThrowable()?->getTraceAsString()

        );



        return htmlspecialchars($throwableString);

    }