This PHP programme returns the greatest common denominator from the input.