Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近下载了一个 HTML DOM 解析器(ganon),并注意到它允许访问通过如下file_get_dom()函数返回的 HTML 元素:
file_get_dom()
$data = file_get_dom("someresource");
foreach($data('table.someClass') as $something)..
我怎样才能实现这种访问属性的相同方法?我以前从未见过 $var() 使用过。
答案是“变量函数”。