Ok I have about 12 pages included in a php page that look like this:
<a name="1"> </a>
<h2>Unit 1: Awareness of employment in the creative media sector</h2>
<p />
<h3> Learning outcomes:</h3>
<ul class="outcomes">
<li class="n1">Know about employment status in the Creative Media sector</li>
<li class="n2">Understand the Creative Media employment market place</li>
<li class="n3">Be able to promote self</li>
</ul>
<hr />
<ul class="files">
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.
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?
Thanks.
I would suggest using a PHP DOM parser such as this.