Whenever any person is brought before a court or any justice thereof as aforesaid the court or justice shall, within three days thereafter, examine the causes of detention.
RSA 534:21
RS 202:21. CS 215:21. GS 224:21. GL 243:21. PS 239:21. PL 350 :21. RL 406:21.