Re: Feature request for min() and max()

From: Date: Mon, 20 Nov 2000 13:31:48 +0000
Subject: Re: Feature request for min() and max()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38594@lists.php.net to get a copy of this message
[Mon, 20 Nov 2000] Andi Gutmans said: > I didn't quite understand what this patch does. Can you explain on a PHP level? My *plan* was for this patch to change the behaviour of max() and min(), so that if you pass it one scalar value, instead of returning a "wrong number of arguments" warning, it just passes back the value of the scalar. So ... <? echo min(12); ?> Outputs "12", not an error. I'm not sure if my code is right though, thus my post to the list for someone else to take a quick look before committing it. - Colin

« previous php.dev (#38594) next »