how to get strings inside html code to an array
<p>i need to get aver-table,average,light,averno to an array and print them to a new line.</p>

<pre><code>    $string = '...&lt;div class="sdasdad"&gt;&lt;li class="class-a"&gt;&lt;a href="asdasd" class="vcxv" title="erewer"&gt;aver-table&lt;/a&gt;&lt;/li&gt;
&lt;li class="class-a"&gt;&lt;a href="qwe2" class="23" title="ww4"&gt;average&lt;/a&gt;&lt;/li&gt;
&lt;li class="class-a"&gt;&lt;a href="sd" class="324" title="sd"&gt;light&lt;/a&gt;&lt;/li&gt;
&lt;li class="class-a"&gt;&lt;a href="xc" class="ds" title="zvc"&gt;averno&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;&lt;table&gt;...';
</code></pre>
