Loop array for scrape
<p>I have an array with some values</p>

<pre><code>$array = array("Bob","jim","frank","pat");
</code></pre>

<p>And i have some scrape code from simple html dom</p>

<pre><code>$html = file_get_html('http://somesite.com?search=name');
//itteration and so on
</code></pre>

<p>I want to be able to give the url the values from the array one at a time so it will scrape the url with search=bob then go to search=jim and so on</p>

<p>I tried putting the file_get_html with the itterations and so on in a loop then use</p>

<pre><code>foreach($array as $arrays){
$html = file_get_html('http://somesite.com?search=$arrays');
//more code
}
</code></pre>

<p>But this wont work, anyway to do this?</p>
