Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- SPL: ArrayObject --FILE-- <?php echo "-- Two empty iterators attached with infos..

Decoded Output download

-- Two empty iterators attached with infos that are different but same array key --

Did this file decode correctly?

Original Code

--TEST--
SPL: ArrayObject
--FILE--
<?php

echo "-- Two empty iterators attached with infos that are different but same array key --\n";
$mit = new MultipleIterator(MultipleIterator::MIT_KEYS_ASSOC);
$mit ->attachIterator(new EmptyIterator(), "2");
$mit ->attachIterator(new EmptyIterator(), 2);
var_dump($mit->countIterators());
$mit->rewind();
var_dump($mit->current());

?>
--EXPECT--
-- Two empty iterators attached with infos that are different but same array key --
int(2)
array(1) {
  [2]=>
  NULL
}

Function Calls

None

Variables

None

Stats

MD5 6d6f9186e191e6e341c3cf0831f3efbe
Eval Count 0
Decode Time 90 ms