我想從transaction(123456)
的ID在HTML的preg_match不匹配
它似乎並不返回任何東西。
$response = "</body> </html><script type='text/javascript'>transaction(123456);</script>";
preg_match('/^transaction\((\d+)\)/', $response, $match);
print_r($match);
if (is_numeric($match[1])) {
echo "Your ID: " . $match[1];
}