<?php
$res['email'] = array('email1@gmail.com', 'email2@gmail.com', 'email3@gmail.com'); for ($i = 0; $i < count($res); $i++): endfor;
PD9waHAKCiRyZXNbJ2VtYWlsJ10gPSBhcnJheSgnZW1haWwxQGdtYWlsLmNvbScsICdlbWFpbDJAZ21haWwuY29tJywgJ2VtYWlsM0BnbWFpbC5jb20nKTsKJHJlc0pzb24gPSBhcnJheSgpOwpmb3IgKCRpID0gMDsgJGkgPCBjb3VudCgkcmVzKTsgJGkrKyk6CiAgIGFycmF5X3B1c2goJHJlc0pzb24sICRyZXNbJ2VtYWlsJ10pOwplbmRmb3I7CgoKZWNobyBqc29uX2VuY29kZSgkcmVzSnNvbik7