Home
last modified time | relevance | path

Searched refs:needle (Results 101 – 125 of 131) sorted by path

123456

/PHP-7.4/ext/standard/tests/strings/
H A Dstrrchr_variation5.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
25 $escape_char_str //needle as haystack
28 //loop through to test strrchr() with each needle
29 foreach($needles as $needle) {
30 var_dump( strrchr($escape_char_str, $needle) );
H A Dstrrchr_variation6.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
26 $quote_char_str //needle as haystack
29 //loop through to test strrchr() with each needle
30 foreach($needles as $needle) {
31 var_dump( strrchr($quote_char_str, $needle) );
H A Dstrrchr_variation7.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
26 $blank_line //needle as haystack
29 //loop through to test strrchr() with each needle
30 foreach($needles as $needle) {
31 var_dump( strrchr($blank_line, $needle) );
H A Dstrrchr_variation8.phpt5 /* Prototype : string strrchr(string $haystack, string $needle);
24 $empty_str //needle as haystack
27 //loop through to test strrchr() with each needle
28 foreach($needles as $needle) {
29 var_dump( strrchr($empty_str, $needle) );
H A Dstrripos_basic1.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
15 echo "\n-- regular string for haystack & needle --\n";
22 echo "\n-- single char for needle --\n";
26 echo "\n-- heredoc string for haystack & needle --\n";
36 -- regular string for haystack & needle --
43 -- single char for needle --
47 -- heredoc string for haystack & needle --
H A Dstrripos_basic2.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
15 echo "\n-- regular string for haystack & needle, with various offsets --\n";
21 echo "\n-- heredoc string for haystack & needle, with various offsets --\n";
42 -- regular string for haystack & needle, with various offsets --
48 -- heredoc string for haystack & needle, with various offsets --
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double 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 double quoted strings for 'haystack' & 'needle' arguments */
62 $haystack //haystack as needle
65 /* loop through to get the position of the needle in haystack string */
67 foreach ($needles as $needle) {
69 var_dump( strripos($haystack, $needle) );
70 var_dump( strripos($haystack, $needle, 1) );
71 var_dump( strripos($haystack, $needle, 20) );
[all …]
H A Dstrripos_variation2.phpt2 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'
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) );
[all …]
H A Dstrripos_variation3.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
H A Dstrripos_variation4.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
H A Dstrripos_variation5.phpt5 /* Prototype : int strripos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of a case-insensitive 'needle' in a 'haystack'
H A Dstrrpos_basic1.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'
16 //regular string for haystack & needle
22 //single char for needle
26 //heredoc string for haystack & needle
H A Dstrrpos_basic2.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'
16 //regular string for haystack & needle, with various offsets
22 //heredoc string for haystack & needle, with various offsets
H A Dstrrpos_variation1.phpt2 Test strrpos() function : usage variations - double 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 double quoted strings for 'haystack' & 'needle' arguments */
14 $needle = array(
62 $haystack //haystack as needle
65 /* loop through to get the position of the needle in haystack string */
67 for($index=0; $index<count($needle); $index++) {
69 var_dump( strrpos($haystack, $needle[$index]) );
70 var_dump( strrpos($haystack, $needle[$index], $index) );
H A Dstrrpos_variation10.phpt2 Test strrpos() function : usage variations - unexpected inputs for 'needle' argument
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 with unexpected inputs for 'needle' and
14 echo "*** Testing strrpos() function with unexpected values for needle ***\n";
95 *** Testing strrpos() function with unexpected values for needle ***
134 Warning: strrpos(): needle is not a string or an integer in %s on line %d
138 Warning: strrpos(): needle is not a string or an integer in %s on line %d
142 Warning: strrpos(): needle is not a string or an integer in %s on line %d
146 Warning: strrpos(): needle is not a string or an integer in %s on line %d
[all …]
H A Dstrrpos_variation11.phpt2 Test strrpos() function : usage variations - unexpected inputs for 'haystack' and 'needle' arguments
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 with unexpected inputs for 'haystack' and 'needle' arguments */
12 echo "*** Testing strrpos() function with unexpected values for haystack and needle ***\n";
92 *** Testing strrpos() function with unexpected values for haystack and needle ***
H A Dstrrpos_variation12.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstrrpos_variation13.phpt2 Test strrpos() function : usage variations - checking bianry safe with 'needle' argument
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 with null terminated strings for 'needle' argument
H A Dstrrpos_variation15.phpt2 Test strrpos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' …
7 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
8 * Description: Find position of last occurrence of 'needle' in 'haystack'.
12 /* Test strrpos() function with unexpected inputs for 'haystack', 'needle' & 'offset' arguments */
14 echo "*** Testing strrpos() function: with unexpected values for haystack, needle & offset ***\n";
92 *** Testing strrpos() function: with unexpected values for haystack, needle & offset ***
H A Dstrrpos_variation2.phpt2 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]) );
[all …]
H A Dstrrpos_variation3.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstrrpos_variation4.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstrrpos_variation5.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstrrpos_variation6.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstrrpos_variation7.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.

Completed in 36 milliseconds

123456