Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Translate characters or replace substrings
strtr(string $stringstring $fromstring $to): string
    protected function transformHeadersToServerVars(array $headers)

    {

        return 
collect(array_merge($this->defaultHeaders$headers))->mapWithKeys(function ($value$name) {

            
$name strtr(strtoupper($name), '-''_');



            return [
$this->formatServerHeaderKey($name) => $value];

        })->
all();
        $uri strtr(rawurlencode($uri), $this->dontEncode);



        if (! 
$absolute) {

            
$uri preg_replace('#^(//|[^/?])+#'''$uri);
    public static function swap(array $map$subject)

    {

        return 
strtr($subject$map);

    }
    public function swap(array $map)

    {

        return new static(
strtr($this->value$map));

    }
            $shouldReplace[':'.$key] = $value;

        }



        return 
strtr($line$shouldReplace);

    }
    protected function compileParent()

    {

        
$escapedLastSection strtr($this->lastSection, ['\\' => '\\\\'"'" => "\\'"]);



        return 
"<?php echo \Illuminate\View\Factory::parentPlaceholder('{$escapedLastSection}'); ?>";

    }