Ja,
dass habe ich bereits, dennoch danke dafür.

Es geht ja darum die Links so zu filtern das ich Gruppe a und gruppe b habe.

a mit den ul- links
b mit den so- links

Das bekomme ich nicht gebacken. :/

- - - - - - - - - - Beitrag nachträglich erweitert - - - - - - - - - -

Hab da jetzt eine Variante gebastelt, aber kann mir jemand sagen ob das zuverlässig ist?
PHP-Code:
$content '
http://ul.to/2
http://www.share-online.biz/2
http://ul.to/3
http://www.share-online.biz/4
http://ul.to/4
http://www.share-online.biz/1
http://www.share-online.biz/3
http://www.share-online.biz/4
http://ul.to/1
'
;

$result explode(PHP_EOL$content);

echo 
"Test1<br />";
foreach (
$result as $url) {
    
$parse parse_url($url);
    if (
$parse['host'] == "ul.to") {
        
$ul .= $url;
    } elseif (
$parse['host'] == "www.share-online.biz") {
        
$so .= $url;
    }
}

echo 
"UL<br />";
echo 
$ul;
echo 
"<br />SO<br />";
echo 
$so;
echo 
"<br />";
var_dump($result);
echo 
"<br />"
Ausgabe:
Test2
UL
http://ul.to/2http://ul.to/3http://ul.to/4http://ul.to/1
SO
http://www.share-online.biz/2http://www.share-online.biz/4http://www.share-online.biz/1http://www.share-online.biz/3http://www.share-online.biz/4

array(11) {
[0]=>
string(0) ""
[1]=>
string(14) "http://ul.to/2"
[2]=>
string(29) "http://www.share-online.biz/2"
[3]=>
string(14) "http://ul.to/3"
[4]=>
string(29) "http://www.share-online.biz/4"
[5]=>
string(14) "http://ul.to/4"
[6]=>
string(29) "http://www.share-online.biz/1"
[7]=>
string(29) "http://www.share-online.biz/3"
[8]=>
string(29) "http://www.share-online.biz/4"
[9]=>
string(14) "http://ul.to/1"
[10]=>
string(0) ""
}