PHP: get contents of li's within ul
<p>Ok I have about 12 pages included in a php page that look like this:</p>

<pre><code>&lt;a name="1"&gt; &lt;/a&gt;
&lt;h2&gt;Unit 1: Awareness of employment in the creative media sector&lt;/h2&gt;
&lt;p /&gt;
&lt;h3&gt; Learning outcomes:&lt;/h3&gt;
&lt;ul class="outcomes"&gt;
&lt;li class="n1"&gt;Know about employment status in the Creative Media sector&lt;/li&gt;
&lt;li class="n2"&gt;Understand the Creative Media employment market place&lt;/li&gt;
&lt;li class="n3"&gt;Be able to promote self&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;ul class="files"&gt;
</code></pre>

<p>I want to be able to store the contents of the li's in an array, so I want to find grab the contents of each li within an ul with the class "outcomes" and push to array.</p>

<p>Is this possible? I have heard of Xpath but it looks like jibberish to me, can anyone explain this more simply with some straightforward php or push me in the right direction for xpathing this?</p>

<p>Thanks.</p>
