I have this little bit of code and I want to return an array of strings after looping through the array and pushing the $id
parameter to the array.
function getAdminEmail($id) {
$query = executeQuery("SELECT email FROM system_users WHERE access='" . $id . "'");
$emails = array();
while($row = $query->fetch_assoc()) {
array_push($emails,$row['email']);
}
return $emails;
}