What code I should do change in this PHP script to send one email to more than 20 email addresses?
You can just write multiple email address to whom you want to send and pass it as the first argument. Example:-
mail("FirstEmailId@ABC.com, SecondEmilId@XYZ.com","Subject","Message","From: EmailId@PQR.com");