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

$m3 = Map {};
echo $m3."\n";
Output
Map
Map