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

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

$v3 = Vector {};
echo $v3->__toString()."\n";