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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -