HH\Lib\Math\maxva

This API is part of the Hack Standard Library, not HHVM itself.

Returns the largest of all input numbers

namespace HH\Lib\Math;

function maxva<T as num>(
  T $first,
  T $second,
  T ...$rest,
): T;

Parameters

  • T $first
  • T $second
  • T ...$rest