附近补胎电话大车 (附近补胎电话查询)
合肥耍耍
04-17
阅读:56
评论:0
![](/gg/hf11.gif)
请在下方输入您的位置,我们将为您提供附近补胎店的联系方式。
loadHTML($html);$xpath = new DOMXPath($dom);$results = $xpath->query('//h3[@class="r"]/a');if ($results->length > 0) {echo "";echo "";foreach ($results as $result) {$name = $result->nodeValue;$href = $result->getAttribute('href');$phone = null;$address = null;preg_match('/\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/', $href, $matches);if (isset($matches[0])) {$phone = $matches[0];}preg_match('/ (.+?)<\/span>/', $href, $matches);if (isset($matches[1])) {$address = $matches[1];}echo " ";}echo "公司名称 | 电话号码 | 地址 |
---|---|---|
$name | $phone | $address |
抱歉,没有找到任何结果。
";}}?>版权声明
本文仅代表作者观点,不代表合肥桑拿立场。
本文系作者授权发表,未经许可,不得转载。