How to limit results display on a page from foreach func and break it to serveral pages
<p>I have a code that fetch and  dispalys results using foreach function but problem is it returns alots of results so page loading is very slow! Is there any way to break these results into pages like 1,2,3,4 &amp; display only 10 results per page?</p>

<p>my code is </p>

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


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