我正在尝试一一循环显示电子邮件地址。但是,它只是在单行中打印所有电子邮件地址。
电子邮件.txt
"firstemail","secondemail","thirdemail","fourthemail","fifthemail"
电子邮件.php
<?php
$count=1;
$emails=readfile("../email.txt");
$email=explode(",",$emails);
foreach($email as $e){
echo "$count Email : $e<br />\n";
$count=$count+1;
}
?>
预期产出
“第一封邮件”
“第二封邮件”
“第三封邮件”
“第四封邮件”
“第五封邮件”
但是,我得到
"firstemail","secondemail","thirdemail","fourthemail","fifthemail"