I saw code that contained the following line:
preg_replace_callback($regex, 'TextileParser::replaceAnchor', $text);
where TextileParser::replaceAnchor()
is a private static method. Is that possible, or the code is wrong?
I saw code that contained the following line:
preg_replace_callback($regex, 'TextileParser::replaceAnchor', $text);
where TextileParser::replaceAnchor()
is a private static method. Is that possible, or the code is wrong?
on php's website, there's this example:
http://www.php.net/manual/en/function.preg-replace-callback.php#96899
I'd assume if it's on php.net, then it's good to go.