Zitat von Dingsi Du könntest es so machen, dass alle Vorkommnisse von $global durchgegangen und jeweils einzeln ersetzt werden. z.B. so: PHP-Code: while(preg_match('#\$global\[(.*)\]#Uis', $this->str, $matches)) { $this->str = preg_replace('#\$global\['.$matches[1].']#Uis', $this->data[$matches[1]], $this->str); } ... Yay, funktioniert, danke Okay, dann bis zum nächsten Problem ^^"
while(preg_match('#\$global\[(.*)\]#Uis', $this->str, $matches)) { $this->str = preg_replace('#\$global\['.$matches[1].']#Uis', $this->data[$matches[1]], $this->str); }
--
Foren-Regeln