note 20918 deleted from function.preg-replace-callback by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 02:23:37 +0000 |
| Subject: | note 20918 deleted from function.preg-replace-callback by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133107@lists.php.net to get a copy of this message | ||
Note Submitter: oyoryelNOSPAM at hotNOSPAMmail dot com
----
If you want to be able to change variables of the class in the callback function, you have to use
preg_replace_callback(pattern, array(&$this, 'method_name'), subject)
Probably very obvious, but it kept me busy for a while...