Actually you want $num = sprintf("%02d", $num % 100); to avoid Y2K errors.
In reply to Re: anyway to combine these two steps? by ambrus in thread anyway to combine these two steps? by convenientstore