PHP-Code: $string = "blubb [include bla] asdf"; while(preg_match("/\[include (.*?)\]/",$string,$matches)) { $string = str_replace("[include {$matches[1]}]",file_get_contents($matches[1]),$string); } Ungetestet.
$string = "blubb [include bla] asdf"; while(preg_match("/\[include (.*?)\]/",$string,$matches)) { $string = str_replace("[include {$matches[1]}]",file_get_contents($matches[1]),$string); }
--Abwesend.
Foren-Regeln