时间:2021-07-01 10:21:17 帮助过:53人阅读
$strMaxcardid=3655448674;
$ar = str_split($strMaxcardid);
foreach($ar as $k => $v) {
if ($v == 4 || $v == 7) {
$ar[$v] ++;
break;
}}
$str = join('', $ar);
echo $str;*/
$strMaxcardid=3655448674;3655558685
$ar = str_split($strMaxcardid);
foreach($ar as $k => $v) {
if ($v == 4
------解决思路----------------------
$v == 7) {
$ar[$k] ++;
}
}
$str = join('', $ar);
echo $str;