how to make an anchor url via foreach using grabbed URL n TITLE
<p>I use preg_match_all to grab urls and titles from another page and grabbing is ok but i cant get them in to one using foreach! or is there another way instead of foreach?</p>

<pre><code>//gets URLs of href='xxxx'   
 preg_match_all('/a href="([^"]+)" class=l.+?&gt;.+?&lt;\/a&gt;/',$sear,$results);

//gets titles of &gt;xxxx&lt;/a&gt;   
    preg_match_all('/a href=".+?" class=l.+?&gt;([^"]+)&lt;\/a&gt;/',$sear,$t);
</code></pre>

<p>Below code Displays grabbed URLs</p>

<pre><code>foreach ($results[1] as $url)
{
echo "&lt;a href='$url'&gt;$u&lt;/a&gt; &lt;br&gt;";

$i++;
}
</code></pre>

<p>Below code Displays grabbed titles</p>

<pre><code>   foreach ($t[1] as $title)
   { 
   echo $title; 
   $i++;
   }
</code></pre>

<p>but i dont know how to display them(url &amp; title) in one foreach so i can make it like </p>

<pre><code>&lt;a href='URL'&gt;Title&lt;/a&gt; 
</code></pre>

<p>I'm new to php please help me!!</p>
