HH\Lib\Str\join
Requires the Hack Standard Library to be installed.
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
namespace HH\Lib\Str;
function join(
Traversable<arraykey> $pieces,
string $glue,
): string;
Previously known as implode
in PHP.
Parameters
Traversable<arraykey> $pieces
string $glue
Returns
string