(a) It shall be the duty of the county superintendent of education or the city superintendent of education, as the case may be, to require the attendance officer to investigate all cases of nonenrollment and of nonattendance. In all cases investigated where no valid reason for nonenrollment or nonattendance is found, the attendance officer shall give written notice to the parent, guardian, or other person having control of the child. In the event of the absence of the parent, guardian, or other person having control of the child from his or her usual place of residence, the attendance officer shall leave a copy of the notice with some person over 12 years of age residing at the usual place of residence, with instructions to hand the notice to the parent, guardian, or other person having control of the child, which notice shall require the attendance of the child at the school within three days from the date of the notice. In the event the investigation discloses that the nonenrollment or nonattendance was without valid excuse or good reason and intentional, the attendance officer shall be required to bring criminal prosecution against the parent, guardian, or other person having control of the child.
(b) Each child who is enrolled in a public school shall be subject to the attendance and truancy provisions of this article except that any parent or parents, guardian or guardians who voluntarily enrolls their child in public school, who feel that it is in the best interest of that child shall have the right to withdraw the child at any time prior to the current minimum compulsory attendance age.