HH\Lib\Str\repeat

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

This function is available as Str\repeat() in Facebook's www repository.

Returns the input string repeated $multiplier times

Description

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