Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Translate characters or replace substrings
strtr(string $stringstring $fromstring $to): string
    private function getSourceLink(string $fileint $line)

    {

        if (
$fmt $this->displayOptions['fileLinkFormat']) {

            return 
\is_string($fmt) ? strtr($fmt, ['%f' => $file'%l' => $line]) : ($fmt->format($file$line) ?: 'file://'.$file.'#L'.$line);

        }



        return 
false;
        $options $this->extraDisplayOptions $this->displayOptions;



        if (
$fmt $options['fileLinkFormat']) {

            return 
\is_string($fmt) ? strtr($fmt, ['%f' => $file'%l' => $line]) : $fmt->format($file$line);

        }



        return 
false;