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."\n";

$is2 = ImmSet {'a', 'b', 'c'};
echo $is2."\n";

$is3 = ImmSet {};
echo $is3."\n";
Output
ImmSet
ImmSet
ImmSet