<?php
$s = "2003年15期会议纪要";
preg_match_all("/(\d+)/",$s,$regs);
echo $regs[1][0]; // 输出其中的年号
echo $regs[1][1]; // 输出其中的期号
?>
$s = "2003年15期会议纪要";
preg_match_all("/(\d+)/",$s,$regs);
echo $regs[1][0]; // 输出其中的年号
echo $regs[1][1]; // 输出其中的期号
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货