HH\ImmSet::__toString

Returns the string version of this ImmSet, which is "ImmSet"

public function __toString(): string;

Returns

  • string - The string "ImmSet".

Examples

The string version of an ImmSet is always "ImmSet":

$is = ImmSet {1, 2, 3};
echo $is->__toString()."\n";

$is2 = ImmSet {'a', 'b', 'c'};
echo $is2->__toString()."\n";

$is3 = ImmSet {};
echo $is3->__toString()."\n";