HH\ImmVector::__toString

Returns the string version of the current ImmVector, which is "ImmVector"

public function __toString(): string;

Returns

  • string - The string "ImmVector".

Examples

The string version of a Vector is always "Vector":

$v = Vector {1, 2, 3};
echo $v."\n";

$v2 = Vector {'a', 'b', 'c'};
echo $v2."\n";

$v3 = Vector {};
echo $v3."\n";
Output
Vector
Vector
Vector