Mailinglisten-Archive |
Hervorragend - vielen Dank!
Uli
> function findLink($text)
> {
> $total = "/<a href\=\'(.*)\'>(.*)<\/a>/";
> if (preg_match($total,$text,$matches)) :
> return $matches;
> else :
> die("Nothing");
> endif;
> }
>
>
> $matches[0]: $text
> $matches[1]: href // dein $href
> $matches[3]: description // dein $headline
Hier müsste es allerdings $matches[2] heissen.
php::bar PHP Wiki - Listenarchive