Re: [請益] 請教preg_match

看板PHP作者 (漢米爾頓)時間15年前 (2010/10/08 17:41), 編輯推噓2(201)
留言3則, 3人參與, 最新討論串1/1
※ 引述《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
對不起... 是我暈頭orz 我砍掉原文去^^"
10/08 17:55, 2F

10/08 20:49, , 3F
mattch~
10/08 20:49, 3F
文章代碼(AID): #1ChkTSyc (PHP)
文章代碼(AID): #1ChkTSyc (PHP)