Re: [請益] 請教preg_match
※ 引述《ldwang (地瓜)》之銘言:
: $match_price = "0";
: $t1 = preg_match($re_price, $input1);
: $t2 = preg_match($re_price, $input2);
: if(($t1==true) && ($t2==true))
: {
: $mattch_price = "1";
$match_price = "1";
: /*收款與回程收款輸入正確*/
: }
: print_r($match_price);
: ?>
: 請問,$match_price為什麼不是我所想像的,應該要變成1? (true)
: 謝謝 >.<
我已經不知道該說什麼了...
--
"I am a full-blooded racer, that's why I'm here. Do they think I came
here just for a Sunday afternoon outing?"
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.199.248.193
推
10/08 17:51, , 1F
10/08 17:51, 1F
推
10/08 17:55, , 2F
10/08 17:55, 2F
→
10/08 20:49, , 3F
10/08 20:49, 3F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章