and also, i have function that checks the email addresses inputted by the user.
fisrt, i used prag_split liek this:
$mailadd = preg_split('/[,? ]+/',$to);
then when i tried to use the email validator, it returns an error
$count = (count($mails));
for ($i = 1; $i <= $count; $i++) {
if (isValidEmail($mailadd($i))){
echo "good email";
}
what could have been the problem?