Decisamente meglio questo, che è con le regexpOriginariamente inviato da nicola75ss
Codice PHP:
$stringa = "questo è testo inutile questo è tutto
il testo da cercare altro testo che non mi serve";
preg_match("#inutile (.*) altro#is",$stringa,$testo);
echo $testo[1];
![]()