"信用还贷", "07-23"=>"购买商品");$da">
时间:2021-07-01 10:21:17 帮助过:19人阅读
$rc = array("07-12"=>"同学聚会", "07-21"=>"信用还贷", "07-23"=>"购买商品");
$date = "07-23";
foreach($rc as $key=>$value){
if($key == $date){
echo "";
break;
}else{
echo "";
break;
}
}
?>
$rc = array("07-12"=>"同学聚会", "07-21"=>"信用还贷", "07-23"=>"购买商品");想想为什么
$date = "07-23";
$msg = '';
foreach($rc as $key=>$value){
if($key == $date){
$msg = "";
break;
}
}
if(! $msg) $msg = "";
echo $msg;