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-- Test array_count_values() function : Test all normal parameter variations --FILE-..
Decoded Output download
*** Testing array_count_values() : parameter variations ***
Did this file decode correctly?
Original Code
--TEST--
Test array_count_values() function : Test all normal parameter variations
--FILE--
<?php
/*
* Test behaviour with parameter variations
*/
echo "*** Testing array_count_values() : parameter variations ***\n";
class A {
static function hello() {
echo "Hello\n";
}
}
$ob = new A();
$fp = fopen("array_count_file", "w+");
$arrays = array ("bobk" => "bobv", "val", 6 => "val6", $fp, $ob);
var_dump (@array_count_values ($arrays));
echo "\n";
echo "Done";
?>
--CLEAN--
<?php
unlink("array_count_file");
?>
--EXPECT--
*** Testing array_count_values() : parameter variations ***
array(3) {
["bobv"]=>
int(1)
["val"]=>
int(1)
["val6"]=>
int(1)
}
Done
Function Calls
None |
Stats
MD5 | f3cea6819339c02acbc3dd6b7ec74f38 |
Eval Count | 0 |
Decode Time | 106 ms |