I know I may sound dumb, but can someone help with this pice of code
function __($text, $array) {
$text = preg_replace("/\{(\w+)\}/e", "\$array[strtolower('$1')]", $text);
return $text;
}
It is in a function file. I kept receiving an error saying “preg_replace(): The /e modifier is deprecated, use preg_replace_callback”
Any good answer will be highly appreciated.
Jean Antoine