Is there a lower limit and upper limit check function in PHP or MySQL? -
Is there such a function in PHP or MySQL?
function check ($ lower, $ val, $ upper) {if ($ val> $ lower & $ val & lt; upper) {return $ val; } If ($ val & lt; = $ less) {return $ lower; } If ($ val> = $ upper) {return over $; }}
I do not believe this, but min ()
and Maximum ()
:
function check ($ lower, $ val, $ upper) {return minute (max ($ lower, $ val), upper $); }
Comments
Post a Comment