Annotation of embedaddon/php/ext/standard/tests/strings/strrpos.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: strrpos() function
! 3: --FILE--
! 4: <?php
! 5: var_dump(strrpos("test test string", "test"));
! 6: var_dump(strrpos("test string sTring", "string"));
! 7: var_dump(strrpos("test strip string strand", "str"));
! 8: var_dump(strrpos("I am what I am and that's all what I am", "am", -3));
! 9: var_dump(strrpos("test string", "g"));
! 10: var_dump(strrpos("te".chr(0)."st", chr(0)));
! 11: var_dump(strrpos("tEst", "test"));
! 12: var_dump(strrpos("teSt", "test"));
! 13: var_dump(@strrpos("foo", "f", 1));
! 14: var_dump(@strrpos("", ""));
! 15: var_dump(@strrpos("a", ""));
! 16: var_dump(@strrpos("", "a"));
! 17: var_dump(@strrpos("\\\\a", "\\a"));
! 18: ?>
! 19: --EXPECT--
! 20: int(5)
! 21: int(5)
! 22: int(18)
! 23: int(12)
! 24: int(10)
! 25: int(2)
! 26: bool(false)
! 27: bool(false)
! 28: bool(false)
! 29: bool(false)
! 30: bool(false)
! 31: bool(false)
! 32: int(1)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>