1
如果我提出的正則表達式,並通過陣列$content
它:Preg_match_all也返回初始值
preg_match_all(/([0-9]+)\/([0-9]+)/, $content, $matches);
哪裏$content
是數組:
Name Address 77/88 Country
Name Address 71/90 Country
Name Address 72/43 Country
Name Address 76/55 Country
Name Country
Name Address
它將返回$matches
:
array(4) {
[0]=>
string(5) "77/88"
[1]=>
string(5) "71/90"
[2]=>
string(5) "72/43"
[3]=>
string(5) "76/55"
}
但我能不知何故最初的數組$content
瓦爾你也有匹配的值嗎?
預期結果是什麼? – Toto