Change by function math utility function to change a number by number and set minimum and maximum limits for the result. Also has a cycle boolean attribute to determine whether the number should wrap around the limits -
Example if
number 2
change by -2
min 1
max 10
then the result will be 9
Notice: Undefined index: num in /home/t7/public_html/prjs/php2/p3/util/change_by/changeBy.php on line 50
Download view src of this file including the change by function changeBy source code