how do i reverse the order when echoing my results?
<p>i have this bit of code:</p>

<pre><code>&lt;?php   
$file = file_get_contents('http://example.com');
preg_match_all("/&lt;a href=(.*?links.*?)&gt;.*?&lt;\/a&gt;/i", $file, $a);
$count = count($a[1]);
for ($row = 0; $row &lt; $count ; $row++) {
$linkurls = $a[1]["$row"];
echo ' '.$linkurls.' &lt;br&gt;';
}
?&gt; 
</code></pre>

<p>and currently it echos the links in order they appear on the website. I would like for it to echo the results in a reverse order (the last link on example.com to echo as the first with this code)</p>

<p>any help is appreciated! thanks.</p>
