Annotation of embedaddon/php/ext/standard/tests/general_functions/getopt.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: getopt
! 3: --ARGS--
! 4: -v -h -d test -m 1234 -t -j
! 5: --INI--
! 6: register_argc_argv=On
! 7: variables_order=GPS
! 8: --FILE--
! 9: <?php
! 10: var_dump(getopt("d:m:j:vht"));
! 11: ?>
! 12: --EXPECT--
! 13: array(5) {
! 14: ["v"]=>
! 15: bool(false)
! 16: ["h"]=>
! 17: bool(false)
! 18: ["d"]=>
! 19: string(4) "test"
! 20: ["m"]=>
! 21: string(4) "1234"
! 22: ["t"]=>
! 23: bool(false)
! 24: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>