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-- getopt#004 (Optional values) --ARGS-- -v -v1 -v=10 --v --v=100 --INI-- register_a..
Decoded Output download
--TEST--
getopt#004 (Optional values)
--ARGS--
-v -v1 -v=10 --v --v=100
--INI--
register_argc_argv=On
variables_order=GPS
--FILE--
<?php
var_dump(getopt("v::", array("v::")));
?>
--EXPECT--
array(1) {
["v"]=>
array(5) {
[0]=>
bool(false)
[1]=>
string(1) "1"
[2]=>
string(2) "10"
[3]=>
bool(false)
[4]=>
string(3) "100"
}
}
Did this file decode correctly?
Original Code
--TEST--
getopt#004 (Optional values)
--ARGS--
-v -v1 -v=10 --v --v=100
--INI--
register_argc_argv=On
variables_order=GPS
--FILE--
<?php
var_dump(getopt("v::", array("v::")));
?>
--EXPECT--
array(1) {
["v"]=>
array(5) {
[0]=>
bool(false)
[1]=>
string(1) "1"
[2]=>
string(2) "10"
[3]=>
bool(false)
[4]=>
string(3) "100"
}
}
Function Calls
getopt | 1 |
Stats
MD5 | d2bf2b6ccc6b126e2d46a3831ed74028 |
Eval Count | 0 |
Decode Time | 89 ms |