-3
我使用下面的代码,但从链接我不能解析所有股票数据的值。任何人都可以帮助我吗?不能用PHP解析网页简单的HTML DOM解析器
<?php
// Include the library
include('simple_html_dom.php');
// Retrieve the DOM from a given URL
$html = file_get_html('http://www.dsebd.org/dseX_share.php');
// Extract all text from a given cell
echo $html->find('td[align="center"]', 1)->plaintext.'<br><hr>';
您是否收到错误消息?你可以再详细一点吗? – Difster
请阅读[如何创建最小,完整和可验证示例](https://stackoverflow.com/help/mcve)。你需要告诉你想要解析哪些列。有很多列。您还需要提供您收到的任何错误消息。别指望别人为你编写完整的代码。所以,试着更具体。 –
我只是想重写这一行来解析表$ html-> find('td [align =“center”]',1) –