嗨,我是新的PHP 如何將郵件發送到PHP中所選城市與缺乏自信的電子郵件ID與$主題$消息$頭是用PHP switch語句這個正確的方式
$selectcity = array("Bengaluru","Coimbatore","Chennai");
switch(trim($selectcity))
{
case "Bengaluru":
{
$to = '[email protected]''$subject''$message''$headers';
break;
}
case "Coimbatore":
{
$to = '[email protected]''$subject''$message''$headers';
break;
}
case "Chennai":
{
$to = '[email protected]''$subject''$message''$headers';
break;
}
}
ü可以給我一些例子,說明如何做到這一點???我迫切需要添加 – Abhijeet 2011-04-18 03:29:12
示例。 – Raptor 2011-04-18 03:39:27