globy: bestimmtes Textstück in eine Variable

Hallo zusammen.

PHP soll aus einem Textstück wie

texttexttexttexttext<LINK>http://www.domain.com</LINK>texttexttexttexttexttext

Alles zwischen <LINK> und </LINK> in einer Variablen speichern
Wie geht das?

  1. Hi,

    texttexttexttexttext<LINK>http://www.domain.com</LINK>texttexttexttexttexttext
    Alles zwischen <LINK> und </LINK> in einer Variablen speichern
    Wie geht das?

    beschäftige Dich mit preg_match und regulären Ausdrücken (inklusive modifier)
    http://de.php.net/manual/de/function.preg-match.php

    ciao
    romy

    --
    DIE ROMY AUS L. AN DER P. SAGT DANKE UND AUF WIEDERSEHEN
    sh:( fo:| ch:? rl:( br:& va:| zu:) ss:| ls:[
    Die Erklärung zum Selfcode findest du hier: http://emmanuel.dammerer.at/selfcode.html
    Einen Decoder für den Selfcode findest du hier: http://peter.in-berlin.de/projekte/selfcode