HH\Lib\Str\replace_every

This API is part of the Hack Standard Library, not HHVM itself.

Returns the "haystack" string with all occurences of the keys of $replacements replaced by the corresponding values

namespace HH\Lib\Str;

function replace_every(
  string $haystack,
    KeyedContainer<string, string> $replacements,
): string;

For a single search/replace, see Str\replace().

Parameters