Lines Matching refs:needle
2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
10 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
62 42, //needle as int(ASCII value of '*')
63 $haystack //haystack as needle
66 /* loop through to get the position of the needle in haystack string */
68 foreach ($needles as $needle) {
70 var_dump( strripos($haystack, $needle) );
71 var_dump( strripos($haystack, $needle, 1) );
72 var_dump( strripos($haystack, $needle, 20) );
73 var_dump( strripos($haystack, $needle, -1) );