正则表达式
返回列表
if(isset($date)){
if ( ereg( ([0-9]{1,2})/([0-9]{1,2})/([0-9]{4}), $date, $regs ) ) {
echo $regs[0] . 的转换结果为: . $regs[3] . - . $regs[1] . - . $regs[2];
} else {
echo $date 的日期格式不对!
;}}?>
http://www.bkjia.com/phpjc/531918.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/531918.htmltecharticle正则表达式 返回列表 if(isset($date)){ if ( ereg( ([0-9]{1,2})/([0-9]{1,2})/([0-9]{4}), $date, $regs ) ) { echo $regs[0] . 的转换结果为: . $regs[3] . - . $reg...