我有能够从特定网址/网页中找到该字词的代码
$homepage = file_get_contents('http://www.example.com/furniture');
if (preg_match("/Sofa /i", "$homepage")) {
echo "A match was found.";
} else {
echo "A match was not found.";
}
我想知道的是,是否可以动态地从整个网站www.example.com获取关键字“沙发”及其相关细节,例如类型和费用