,我渴望尋求的解決方案得到這個文本字符串PHP - > preg_match_all爲以下結構<h6>我的標題</h6>一些文字... <h6>另一個標題</h6>更多的文字
<h6>First pane</h6>
... pane content ...
<h6>Second pane</h6>
Hi, this is a comment.
To delete a comment, just log in and view the post's comments.
There you will have the option to edit
or delete them.
<h6>Last pane</h6>
... last pane content ...
解析到一個PHP數組。
我需要把它單獨給
1.
1.0=> First pane
1.1=> ... pane content ...
2.
2.0=> Second pane
2.1=> Hi, this is a comment.
To delete a comment, just log in and view the post's comments.
There you will have the option to edit
or delete them.
3.
3.0=> Last pane
3.1=> ... last pane content ...
*(相關)* [解析HTML的最佳方法](http://stackoverflow.com/questions/3577641/best-methods-to-parse-html/3577662#3577662) – Gordon 2010-12-03 16:08:48