【发布时间】:2026-02-24 22:00:01
【问题描述】:
if (preg_match("/<response>(.*)<\/response>/iUms", '<response>CONNECTED_OK</response>', $mathces))
{
var_dump($matches);
}
我试过这个,但起初我有一个带有 cURL 的下载页面,现在我已经硬编码了这个主题。我尝试了很多其他的东西,但它总是返回带有 null 的 $matches。
【问题讨论】:
-
你确实有一个错字,是复制过来的
标签: php regex preg-match