mixed preg_match ( string criterio, string testo [, array &testi_riconosciuti [, int flags [, int offset]]] )
devi utilizare array &testi_riconosciuti
esempio:
il contenuto delle tag lo trovi all'interno di $found[1]Codice PHP:
if (preg_match("/<tag>(.+?)</tag>/i",$testo,$found)) { echo $found[1]; }