Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 25 of 118) sorted by relevance

12345

/PHP-8.3/ext/standard/tests/strings/
H A Dstrrpos_variation14.phpt5 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
7 var_dump(strlen($haystack));
9 var_dump( strrpos($haystack, "", -1) );
10 var_dump( strrpos($haystack, "", -10) );
11 var_dump( strrpos($haystack, "", -26) );
12 var_dump( strrpos($haystack, "", -44) );
H A Dstrripos_variation6.phpt5 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
7 var_dump(strlen($haystack));
9 var_dump( strripos($haystack, "", -1) );
10 var_dump( strripos($haystack, "", -10) );
11 var_dump( strripos($haystack, "", -26) );
12 var_dump( strripos($haystack, "", -44) );
H A Dstrrpos_negative_offset.phpt6 var_dump(strrpos("haystack", 'h', -8));
7 var_dump(strrpos("haystack", 'k', -1));
8 var_dump(strrpos("haystack", "ka", -1));
9 var_dump(strrpos("haystack", 'a', -3));
10 var_dump(strrpos("haystack", 'a', -4));
12 strrpos("haystack", 'h', -9);
35 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
42 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dbug60801.phpt5 $haystack = "foob\x00ar";
8 var_dump(strpbrk($haystack, 'ar'));
9 var_dump(strpbrk($haystack, "\x00"));
10 var_dump(strpbrk($haystack, $needle));
14 var_dump(strpbrk($haystack, 'xyz'));
H A Dstrrpos_variation8.phpt2 Test strrpos() function : usage variations - repetitive chars for 'haystack' argument
5 … Test strrpos() function with strings containing multiple occurrences of 'needle' in the 'haystack'
10 $haystack = "ababababAbaBa";
13 /* loop through to consider various offsets in getting the position of the needle in haystack strin…
15 for($offset = -1; $offset <= strlen($haystack); $offset++ ) {
17 var_dump( strrpos($haystack, $needle, $offset) );
H A Dbug40754.phpt83 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
84 substr_compare(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
88 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
8 $haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
55 $haystack //haystack as needle
58 /* loop through to get the position of the needle in haystack string */
62 var_dump( strripos($haystack, $needle) );
63 var_dump( strripos($haystack, $needle, 1) );
64 var_dump( strripos($haystack, $needle, 20) );
65 var_dump( strripos($haystack, $needle, -1) );
H A Dstrripos_variation2.phpt2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
56 $haystack //haystack as needle
59 /* loop through to get the position of the needle in haystack string */
63 var_dump( strripos($haystack, $needle) );
64 var_dump( strripos($haystack, $needle, 1) );
65 var_dump( strripos($haystack, $needle, 20) );
66 var_dump( strripos($haystack, $needle, -1) );
H A Dstrrpos_variation2.phpt2 Test strrpos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Test strrpos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ';
56 $haystack //haystack as needle
59 /* loop through to get the position of the needle in haystack string */
63 var_dump( strrpos($haystack, $needle[$index]) );
64 var_dump( strrpos($haystack, $needle[$index], $index) );
H A Dstripos_variation1.phpt2 Test stripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
8 $haystack = "Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ";
64 $haystack //haystack as needle
67 /* loop through to get the position of the needle in haystack string */
71 var_dump( stripos($haystack, $needle[$index]) );
72 var_dump( stripos($haystack, $needle[$index], $index) );
H A Dstripos_variation2.phpt2 Test stripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
8 $haystack = 'Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 ';
66 $haystack //haystack as needle
69 /* loop through to get the position of the needle in haystack string */
73 var_dump( stripos($haystack, $needle[$index]) );
74 var_dump( stripos($haystack, $needle[$index], $index) );
H A Dstrrchr_basic.phpt8 var_dump( strrchr("Hello, World", "Hello") ); //needle as a first word of haystack
9 var_dump( strrchr("Hello, World", "Hello", true) ); //needle as a first word of haystack
21 //needle as second word of haystack
33 var_dump( strrchr("Hello, World", "Hello, World") ); //needle as haystack
34 var_dump( strrchr("Hello, World", "Hello, World", true) ); //needle as haystack
40 //multiple existence of needle in haystack
46 var_dump( strrchr("Hello, World", "Zzzz") ); //non-existent needle in haystack
47 var_dump( strrchr("Hello, World", "Zzzz", true) ); //non-existent needle in haystack
/PHP-8.3/ext/mbstring/tests/
H A Dbug45923.phpt8 function section($func, $haystack, $needle)
14 var_dump($func($haystack, $needle, $offset));
47 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
70 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
78 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
139 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
147 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dmb_stripos_invalid_offset.phpt84 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_invalid_offset.phpt84 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
85 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
91 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_offset_errors.phpt51 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
53 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
54 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
56 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
57 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
58 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_stripos_variation5_Bug45923.phpt50 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
94 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
98 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
100 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
104 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
106 mb_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strpos_variation5.phpt50 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
52 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
86 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
94 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
98 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
100 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
104 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
106 mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_strripos_variation5_Bug45923.phpt75 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
77 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
81 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
83 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
87 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
93 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
95 mb_strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dbug43841.phpt42 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
45 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
47 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
51 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
54 mb_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
56 strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dmb_stripos_basic2.phpt49 foreach ($ascii_haystacks as $haystack) {
50 var_dump(mb_stripos($haystack, $needle));
51 var_dump(mb_stripos($haystack, $needle, 6));
57 foreach ($greek_haystacks as $haystack) {
58 var_dump(mb_stripos($haystack, $needle));
59 var_dump(mb_stripos($haystack, $needle, 4));
/PHP-8.3/ext/intl/tests/
H A Dbug61860.phpt7 $haystack = 'Auf der Straße nach Paris habe ich mit dem Fahrer gesprochen';
9 grapheme_stripos($haystack, 'pariS '),
10 grapheme_stristr($haystack, 'paRis '),
11 grapheme_substr($haystack, grapheme_stripos($haystack, 'Paris'))
H A Dgrapheme_out_of_bounds.phpt211 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
212 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
213 grapheme_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
215 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
216 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
217 grapheme_strrpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
220 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
221 grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
224 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
229 grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
/PHP-8.3/ext/intl/grapheme/
H A Dgrapheme_string.c84 char *haystack, *needle; in PHP_FUNCTION() local
111 found = php_memnstr(haystack + noffset, needle, needle_len, haystack + haystack_len); in PHP_FUNCTION()
115 RETURN_LONG(found - haystack); in PHP_FUNCTION()
134 char *haystack, *needle; in PHP_FUNCTION() local
196 char *haystack, *needle; in PHP_FUNCTION() local
251 char *haystack, *needle; in PHP_FUNCTION() local
525 char *haystack, *needle; in strstr_common_handler() local
538 found = php_memnstr(haystack, needle, needle_len, haystack + haystack_len); in strstr_common_handler()
547 size_t found_offset = found - haystack; in strstr_common_handler()
550 RETURN_STRINGL(haystack, found_offset); in strstr_common_handler()
[all …]
/PHP-8.3/ext/iconv/tests/
H A Diconv_strpos_variation5.phpt52 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
54 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
88 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
90 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
94 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
96 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
100 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
102 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
106 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
108 iconv_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)

Completed in 36 milliseconds

12345