Return to strripos.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: strripos() function 3: --FILE-- 4: <?php 5: var_dump(strripos("test test string", "test")); 6: var_dump(strripos("test string sTring", "string")); 7: var_dump(strripos("test strip string strand", "str")); 8: var_dump(strripos("I am what I am and that's all what I am", "am", -3)); 9: var_dump(strripos("test string", "g")); 10: var_dump(strripos("te".chr(0)."st", chr(0))); 11: var_dump(strripos("tEst", "test")); 12: var_dump(strripos("teSt", "test")); 13: var_dump(@strripos("foo", "f", 1)); 14: var_dump(@strripos("", "")); 15: var_dump(@strripos("a", "")); 16: var_dump(@strripos("", "a")); 17: var_dump(@strripos("\\\\a", "\\a")); 18: ?> 19: --EXPECT-- 20: int(5) 21: int(12) 22: int(18) 23: int(12) 24: int(10) 25: int(2) 26: int(0) 27: int(0) 28: bool(false) 29: bool(false) 30: bool(false) 31: bool(false) 32: int(1) 33: