HH\Lib\Str\format

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

Given a valid format string (defined by SprintfFormatString), return a formatted string using $format_args

namespace HH\Lib\Str;

function format(
  HH\Lib\Str\SprintfFormatString $format_string,
  mixed ...$format_args,
): string;

Parameters

  • HH\Lib\Str\SprintfFormatString $format_string
  • mixed ...$format_args