Annotation of embedaddon/php/ext/standard/tests/general_functions/getopt_004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: getopt#004 (Optional values)
! 3: --ARGS--
! 4: -v -v1 -v=10 --v --v=100
! 5: --INI--
! 6: register_argc_argv=On
! 7: variables_order=GPS
! 8: --FILE--
! 9: <?php
! 10: var_dump(getopt("v::", array("v::")));
! 11: ?>
! 12: --EXPECT--
! 13: array(1) {
! 14: ["v"]=>
! 15: array(5) {
! 16: [0]=>
! 17: bool(false)
! 18: [1]=>
! 19: string(1) "1"
! 20: [2]=>
! 21: string(2) "10"
! 22: [3]=>
! 23: bool(false)
! 24: [4]=>
! 25: string(3) "100"
! 26: }
! 27: }
! 28:
! 29:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>