我有一個PHP變量包含此HTML代碼:PHP - 提取每一行
<ul>
<li>
<a href="http://127.0.0.1/mywebsite/about-us">About us</a>
</li>
<li>
<a href="http://127.0.0.1/mywebsite/imprint">Imprint</a>
</li>
<li>
<a href="http://127.0.0.1/mywebsite/terms-and-conditions">Terms and conditions</a>
</li>
<li>
<a href="http://127.0.0.1/mywebsite/delivery">Delivery</a>
</li>
<li class="last">
<a href="http://127.0.0.1/mywebsite/contacts">Contacts</a>
</li>
</ul>
我想提取在一個PHP陣列中的每個< LI>線。
我該怎麼做?
非常感謝
你想 ...? – Nigel 2011-04-20 15:57:40
[看這裏](http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454) – austinbv 2011-04-20 15:58:42