HH\Map::__toString

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

public function __toString(): string;

Returns

  • string - The string "Map".

Examples

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

$m = Map {'a' => 1, 'b' => 2, 'c' => 3};
echo $m->__toString()."\n";

$m3 = Map {};
echo $m3->__toString()."\n";