note 34620 added to function.preg-replace-callback
| From: | hans at rack1 dot php dot net | Date: | Fri, 01 Aug 2003 12:31:07 +0000 |
| Subject: | note 34620 added to function.preg-replace-callback | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-53137@lists.php.net to get a copy of this message | ||
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)
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace-callback.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34620
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34620&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34620&report=yes