我有这个 PHP foreach 循环:
foreach($emails_list as $email)
但我想做类似的事情
foreach($emails_list as $email and $forename_list as $forename)
我在 foreach 循环上方的代码是:
$sql2="SELECT * from contacts where company_sequence = '".$customersequence."' and contactstatus = '' ";
$rs2=mysql_query($sql2,$conn) or die(mysql_error());
while($result2=mysql_fetch_array($rs2))
{
$emails_list[] = $result2["email"];
}
si 我也希望能够包含$result["forename"];
在循环中
上述工作会产生2个循环吗?