HH\Lib\Str\replace_ci

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

Returns the "haystack" string with all occurrences of $needle replaced by $replacement (case-insensitive)

namespace HH\Lib\Str;

function replace_ci(
  string $haystack,
  string $needle,
  string $replacement,
): string;

Parameters

  • string $haystack
  • string $needle
  • string $replacement