如何将输出/派生值分配给 FOR LOOP 内的数组
$num = count($email);
for($i=0; $i < $num; $i++){
$result = do_post_request("http://api.mysite/api/IsActiveAccount?email=". $email[$i], null);
$status = str_replace('{"result":', "", $result);
$status = str_replace('}', "", $status);
echo $email[$i] ;
}
OUTPUT---->
red@yahoo.com
blue@yahoo.com
yellow@yahoo.com
white@yahoo.com
如何在数组中分配/放置它?像这个。
$value = array("red@yahoo.com","blue@yahoo.com","yellow@yahoo.com", "white@yahoo.com")