note 34620 deleted from function.preg-replace-callback by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 18:40:38 +0000 |
| Subject: | note 34620 deleted from function.preg-replace-callback by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127647@lists.php.net to get a copy of this message | ||
Note Submitter: hans at velum dot net
----
Also, if you want to use a *static* class method for the callback function, you can refer to it like
this:
preg_replace_callback(pattern, array('ClassName', 'methodName'), subject)
In PHP5, from within the class:
preg_replace_callback(pattern, array('self', 'methodName'), subject)