I need to simulate a ∞ in PHP.
So that min(∞,$number) is always $number.
min(∞,$number)
$number
If your only concern is comparison function then yes, you can use array(), it will be always larger then any number
like
echo min(array(), 9999999999999999);
or
if (array() > 9999999999999999) { echo 'array won'; } else { echo 'number won'; }