Codice PHP:<?php
$stringa = "Test<br /><br />1234[code]questo<br /> è<br /> un<br /> codice[/code]continuo la frase<br />";
preg_match("/\[code\](.*?)\[\/code\]/is", $stringa, $m);
$replaced = str_replace("<br />", " ", $m[1]);
echo $replaced;
Codice PHP:<?php
$stringa = "Test<br /><br />1234[code]questo<br /> è<br /> un<br /> codice[/code]continuo la frase<br />";
preg_match("/\[code\](.*?)\[\/code\]/is", $stringa, $m);
$replaced = str_replace("<br />", " ", $m[1]);
echo $replaced;