Hallo,
wie mache ich hier draus eine Funktion, die mir das Ergebnis als Array zurückliefert?
<?php
$handle = fopen ("test.doc", "r");
$i=0;
while (!feof($handle)) {
$i++;
$buffer = fgets($handle, 4096);
preg_match_all("/hyperlink "http://[^"]*"/i",$buffer,$matches);
//echo $buffer."<br>";
$maus=$matches[0];
foreach($maus as $value) {
$link = substr($value, 11, -1);
echo $link."<br>";
}
}
//echo "<br>"."Zähler = ".$i;
fclose ($handle);
?>