dsu5188 2010-08-24 06:05
浏览 64
已采纳

将html表转换为php数组的最快方法是什么?

are there build in functions in latest versions of php specially designed to aid in this task ?

  • 写回答

6条回答 默认 最新

  • duan1933 2010-08-24 06:17
    关注

    Use a DOM parser like SimpleXML to split the HTML code into nodes, and walk through the nodes to build the array.

    For broken/invalid HTML, SimpleHTMLDOM is more lenient (but it's not built in).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?