A.R.S. § 13-4101
Witness for defendant
When a defendant has been held to answer for a public offense, he or the state may, either before or after an indictment or information has been filed, have witnesses examined conditionally on his behalf, as prescribed in this article.