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: FixedArray: setsize - populate array, then shrink --CREDITS-- PHPNW TestFest..
Decoded Output download
--TEST--
SPL: FixedArray: setsize - populate array, then shrink
--CREDITS--
PHPNW TestFest2009 - Rowan Merewood <[email protected]>
--FILE--
<?php
$array = new SplFixedArray(5);
$array[0] = 'one';
$array[1] = 'two';
$array[2] = 'three';
$array[3] = 'four';
$array[4] = 'five';
$array->setSize(2);
var_dump($array);
?>
--EXPECT--
object(SplFixedArray)#1 (2) {
[0]=>
string(3) "one"
[1]=>
string(3) "two"
}
Did this file decode correctly?
Original Code
--TEST--
SPL: FixedArray: setsize - populate array, then shrink
--CREDITS--
PHPNW TestFest2009 - Rowan Merewood <[email protected]>
--FILE--
<?php
$array = new SplFixedArray(5);
$array[0] = 'one';
$array[1] = 'two';
$array[2] = 'three';
$array[3] = 'four';
$array[4] = 'five';
$array->setSize(2);
var_dump($array);
?>
--EXPECT--
object(SplFixedArray)#1 (2) {
[0]=>
string(3) "one"
[1]=>
string(3) "two"
}
Function Calls
None |
Stats
MD5 | 63437955672484d79839ddf9bcf89380 |
Eval Count | 0 |
Decode Time | 80 ms |