I need to simulate a ∞ in PHP.
So that min(∞,$number) is always $number.
min(∞,$number)
$number
Use the constant PHP_INT_MAX.
PHP_INT_MAX
http://php.net/manual/en/language.types.integer.php