function match($var, array $map, callable $default = null) { foreach ($map as $type => $fn) { if ($var instanceof $type) { return $fn(); } } if ($default) ...
確定! 回上一頁