<?php strtr(string $string, string $from, string $to): string
<?php 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();
<?php $uri = strtr(rawurlencode($uri), $this->dontEncode); if (! $absolute) { $uri = preg_replace('#^(//|[^/?])+#', '', $uri);
<?php public static function swap(array $map, $subject) { return strtr($subject, $map); }
<?php public function swap(array $map) { return new static(strtr($this->value, $map)); }
<?php $shouldReplace[':'.$key] = $value; } return strtr($line, $shouldReplace); }
<?php protected function compileParent() { $escapedLastSection = strtr($this->lastSection, ['\\' => '\\\\', "'" => "\\'"]); return "<?php echo \Illuminate\View\Factory::parentPlaceholder('{$escapedLastSection}'); ?>"; }