ID: 36871 Updated by: [EMAIL PROTECTED] Reported By: zabmilenko at charter dot net -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.1.2 New Comment:
I don't see how such function can be useful, if you can do the same thing with on line of code. Previous Comments: ------------------------------------------------------------------------ [2006-03-27 12:31:45] zabmilenko at charter dot net Description: ------------ I find myself reusing the following code to adjust numbers into a desired range and precision: $val = min($max, max($min, round($val, $prec)); This could be more elegantly written like: $val = minmax($val, $min, $max[, $prec]); In my opinion. Thank you. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36871&edit=1