Multiple GetBetween calls
<p>I'm making a script that gets multiple CSS files from a webpage and put them together using <code>foreach()</code> and <code>include()</code>.</p>

<p>I already found the right function:</p>

<pre><code>function GetBetween($content, $start, $end) {
    $r = explode($start, $content);

    if(isset($r[1])) {
        $r = explode($end, $r[1]);
        return $r[0];
    }

    return '';
}
</code></pre>

<p>Is there an alternative to this function to get all in an array?
How can I use this to get multiple strings in an array? 
For example:</p>

<pre><code>foreach($css = GetBetween($page, '&lt;link rel="stylesheet" href="','"') { 
    include("$css"); 
}
</code></pre>
