I\'m using a script to send email to checked users (approval), but script is sending only to first checked user, here\'s the script:
if (isset($_POST[\'approve\'
Move the sendEmail() function outside the foreach loop. Since it is inside the loop so you got the error Cannot redeclare sendEmail()
sendEmail()
foreach