Lines Matching refs:needle
2 Test strrpos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
10 /* Test strrpos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
14 $needle = array(
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 for($index=0; $index<count($needle); $index++) {
70 var_dump( strrpos($haystack, $needle[$index]) );
71 var_dump( strrpos($haystack, $needle[$index], $index) );