HH\Lib\Str\join

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

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

Returns a string formed by joining the elements of the Traversable with the given $glue string

Description

namespace HH\Lib\Str;

function join(
  Traversable<arraykey> $pieces,
  string $glue,
): string;

Previously known as implode in PHP.

Parameters