Ariz. Rev. Stat. § 28-8288
A. If a person is convicted of a third or subsequent violation of section 28-8282 or is convicted of a violation of section 28-8282 and has previously been convicted of any combination of convictions of section 28-8282 or acts committed in another state that if committed in this state would be a violation of section 28-8282 within a period of sixty months: