/is', $content, $matchs);
preg_match_all('/
(.*?)<\/span>/is', $matchs[1][0], $matchs);
$result['high'] = $matchs[1][0];
$result['low'] = $matchs[1][1];
//美元 btc
preg_match_all('/(.*?)<\/span>(.*?)(.*?)<\/span><\/div>/is', $content, $matchs,
PREG_SET_ORDER);
$result['dollar'] = $matchs[0][1];
$result['btc'] = $matchs[0][3];
$result = array_map(function ($value) {
return trim($value);
}, $result);
return $result;
} catch (Exception $exception) {
return false;
}
}
}