2 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
3 * Description: Find position of first occurrence of a case-insensitive string
4 * Source code: ext/standard/string.c
7 /* Test stripos() function with null terminated strings for 'needle' argument
8 * in order to check binary safe
11 echo "*** Test stripos() 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( stripos($haystack, $needles[$index]) );
26 var_dump( stripos($haystack, $needles[$index], $index) );