I ve a function in a class that replaces patterns. part of the function is below.
$text = preg_replace_callback('/\[dekanlik\]/',function (){return $this->dekanlik();},$text);
dekanlik()
is another function in that class which lists the members.
works in local (PHP Version 5.4.21) but not work in server (PHP Version 5.3.3)
any suggestion?