yegor256 yegor256 - 6 months ago 24
PHP Question

how to work with RegexIterator::REPLACE mode?

What is wrong in my code:

$i = new RegexIterator(
new ArrayIterator(array(

foreach ($i as $name=>$value)
echo $name . '=>' . $value . "\n";

The iterator is empty, why? Thanks for your help!

Answer Source

As said already, it's a bug in PHP. I reported it to

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download