this is my problem:
Class myClass {
function process($matche s) {return something($matc hes);}
function myReplace($inpu t)
{
return preg_replace_ca llback(/pattern/, '$this->process', $input)
}
}
problem is '$this->process' isn't a valid callback.
How can I do this?
Class myClass {
function process($matche s) {return something($matc hes);}
function myReplace($inpu t)
{
return preg_replace_ca llback(/pattern/, '$this->process', $input)
}
}
problem is '$this->process' isn't a valid callback.
How can I do this?
Comment