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).
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报