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);

    }
<?php     protected function addEchoLineNumbers(string $value)

    {

        $pattern = sprintf('/(@)?%s\s*(.+?)\s*%s(\r?\n)?/s', $this->contentTags[0], $this->contentTags[1]);



        if (preg_match_all($pattern, $value, $matches, PREG_OFFSET_CAPTURE)) {

            foreach (array_reverse($matches[0]) as $match) {