Annotation of embedaddon/php/ext/standard/tests/strings/strcspn.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test strcspn() behavior
! 3: --FILE--
! 4: <?php
! 5: $a = "22222222aaaa bbb1111 cccc";
! 6: $b = "1234";
! 7: var_dump($a);
! 8: var_dump($b);
! 9: var_dump(strcspn($a,$b));
! 10: var_dump(strcspn($a,$b,9));
! 11: var_dump(strcspn($a,$b,9,6));
! 12: var_dump(strcspn('a', 'B', 1, 2147483647));
! 13: ?>
! 14: --EXPECT--
! 15: string(25) "22222222aaaa bbb1111 cccc"
! 16: string(4) "1234"
! 17: int(0)
! 18: int(7)
! 19: int(6)
! 20: int(0)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>