Hallo,
$text=preg_replace_callback('/\[gal:(.*)\]/', create_function('$bla','return $bla;') , $text);
fürht dazu, dass mitten im Text "Array" ausgegeben wird - sonst funktioniert es auch (normal wird eine externe funktion aufgerufen)
bist du sicher, dass die mysteriöse Ausgabe von *dieser* Anweisung stammt?
fand keine Erklärung bei php.net
Ich auch nicht: Du definierst eine Callback-Funktion, die einen Parameter bekommt und ihn unverändert als Ergebnis zurückgibt. Ich kann in diesem Code-Ausschnitt nichts erkennen, was überhaupt eine Ausgabe erzeugt. Da muss irgendwo noch ein unentdecktes echo oder print stecken ...
So long,
Martin
--
There are 10 types of people in the world: Those who understand the binary system, and those who don't.
There are 10 types of people in the world: Those who understand the binary system, and those who don't.