2 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
3 * Description: Find position of last occurrence of 'needle' in 'haystack'.
4 * Source code: ext/standard/string.c
7 /* Test strrpos() function with null terminated strings for 'needle' argument
8 * in order to check binary safe
11 echo "*** Test strrpos() function: binary safe ***\n";
12 $haystack = "\0Hello\0World\0";
15 "Hello".chr(0)."World",
24 for($index = 0; $index < count($needles); $index++
) {
25 var_dump( strrpos($haystack, $needles[$index]) );
26 var_dump( strrpos($haystack, $needles[$index], $index) );