- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
$markup = '
<ul id="ancTop">
<li style="font-family: arial; font-size: 9pt;">
<div style="overflow: hidden; width: 690px; height: 17px;">
<a href="#">
A90 - Lorem Ipsum
</a>
</div>
</li>
<li style="font-family: arial; font-size: 9pt;">
<div style="overflow: hidden; width: 690px; height: 17px;">
<a href="#">
A85 - Lorem Ipsum
</a>
</div>
</li>
</ul>';
preg_match( '#<ul>(.*?)</ul>#s', $markup, $matches );
print_r($matches);