1--TEST-- 2strrpos() 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-- 20int(5) 21int(5) 22int(18) 23int(12) 24int(10) 25int(2) 26bool(false) 27bool(false) 28bool(false) 29int(0) 30int(1) 31bool(false) 32int(1) 33