All pastes #473865 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-06 13:44 UTC
rendered paste body
        function Matcher () {
            print "matched";
        }

        function NewsFilter ($contents) { 
            $newcontents = preg_replace_callback ("/Q\(([A-Z]+)\)/", array($this,"Matcher"), "<a href=\"pc_quote.php?id=\1\">\1</a>", $contents);
            print $newcontents;
            exit;
        }