preg_replace_callback() problem

请求翻译

I'm using preg_replace_callback to find and replace textual links with live links:

http://www.example.com

to

www.example.com

The callback function I'm providing the function with is within another class, so when I try:

return preg_replace_callback($pattern, "Utilities::LinksCallback", $input);

I get an error claiming the function doesn't exist. Any ideas?

2个回答