$width = 4; $number = substr(sprintf("%0${width}d", $number + 1), -$width);
In reply to Re^2: increment # but keep # of digits same
by Anonymous Monk
in thread increment # but keep # of digits same
by yankeeblue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |