作者LewisHamiltn (漢米爾頓)
看板PHP
標題Re: [請益] 請教preg_match
時間Fri Oct 8 17:41:45 2010
※ 引述《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
1F:推 kylekai:你可以嘆口氣~.... 10/08 17:51
2F:推 ldwang:對不起... 是我暈頭orz 我砍掉原文去^^" 10/08 17:55
3F:→ hinet60613:mattch~ 10/08 20:49