What is the use of the $replacement property in the RegexIterator class.
| From: | Richard Quadling | Date: | Wed, 05 May 2010 16:25:43 +0000 |
| Subject: | What is the use of the $replacement property in the RegexIterator class. | ||
| Groups: | php.doc php.internals | ||
| Request: | Send a blank email to internals+get-48225@lists.php.net to get a copy of this message | ||
Hi.
I'm in the process of getting the PHPDoc classes showing the correct
inherited properties and methods (public/protected but not private).
I picked RecursiveRegexIterator (it has the largest number of
xi:includes in the documentation) as a test.
Using php --rc I see that the inheritance chain is
RecursiveRegexIterator, RegexIterator, FilterIterator and
IteratorIterator.
The property $replacement is part of RegexIterator.
I can see no documentation for this in phpdoc, nor in the Doxygen at
http://www.php.net/~helly/php/ext/spl/
In all the examples I've made so far, var_dump()-ing the RegexIterator
results in a ["replacement"]=>NULL
Assigning a value to $replacement seems to have no bearing on the output.
Regards,
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling