i have an array of email add that needs to be verified. When I call the function during iteration, loop stops after first iteration and does not proceed over entire array. and the return value.
$num contains 6, and $email compose of ([email protected],[email protected],[email protected], [email protected], [email protected],[email protected]) the only valid and registered email are [email protected] and [email protected], but im only getting the [email protected] which is the last.
function get_email_verification(){
$num = count($this->get_payqucker_emails());
$email = $this->get_payqucker_emails();
if ($num){
for($i=0; $i < $num; $i++){
$api_request_url = "http://api.payquicker.com/api/IsActiveAccount";
$param = "email=".$email[$i];
$result_request = $this->do_request($api_request_url, $param, 'GET', 'json');
}
}
else {
echo "All payee emails are already registered to Payquicker";
}
return $result_request ;
}
The do_request function will pause a json/xml value to (GET/POST) in Payquicker APIs
$result_request[]