Source code in PHP for calculating combination possibilities given the last number in a combination for Master combination locks.
—