whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Str
/
Byte
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Str/Byte/replace_every_ci.php
<?php declare(strict_types=1); namespace Psl\Str\Byte; use function str_ireplace; /** * Returns the 'haystack' string with all occurrences of the keys of * `$replacements` replaced by the corresponding values (case-insensitive). * * @param array<string, string> $replacements * * @pure */ function replace_every_ci(string $haystack, array $replacements): string { /** @var list<string> $search */ $search = []; /** @var list<string> $replace */ $replace = []; foreach ($replacements as $k => $v) { $search[] = $k; $replace[] = $v; } return str_ireplace($search, $replace, $haystack); }
Copyright ©2021 || Defacer Indonesia