I didn't know how to put this in the title. I'm doing a preg_replace_callback to a function named callback_fix() within a class. Here's an example:
Code: Select all
class xxx
{
function do()
{
function callback_fix($matches)
{
return $this -> loader[$matches[1]];
}
preg_replace_callback(...,'callback_fix',...);
}
}