Can someone help me with this code:
Code: Select all
function __($text, $array) {
$text = preg_replace("/\{(\w+)\}/e", "\$array[strtolower('$1')]", $text);
return $text;
}Moderator: General Moderators
Code: Select all
function __($text, $array) {
$text = preg_replace("/\{(\w+)\}/e", "\$array[strtolower('$1')]", $text);
return $text;
}