HH\Lib\Str\repeat

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

Returns the input string repeated $multiplier times

namespace HH\Lib\Str;

function repeat(
  string $string,
  int $multiplier,
): string;

If the multiplier is 0, the empty string will be returned.

Parameters

  • string $string
  • int $multiplier