PHP: Wie mache ich eine Variable in create_function () sichtbar?
Dieser Code:
<code>$t = 100; $str = preg_replace_callback("/(Name[A-Z]+[0-9]*)/", create_function( '$matches', 'return $matches[1] + $t;' ), $func); </code>
Wie kann man $ t in der Funktion create_function () in der Funktion preg_replace () sichtbar machen?