/PHP-7.4/ext/standard/tests/strings/ |
H A D | strrchr_variation5.phpt | 5 /* 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 D | strrchr_variation6.phpt | 5 /* 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 D | strrchr_variation7.phpt | 5 /* 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 D | strrchr_variation8.phpt | 5 /* 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 D | strripos_basic1.phpt | 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' 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 D | strripos_basic2.phpt | 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' 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 D | strripos_variation1.phpt | 2 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 D | strripos_variation2.phpt | 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' 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 D | strripos_variation3.phpt | 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'
|
H A D | strripos_variation4.phpt | 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'
|
H A D | strripos_variation5.phpt | 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'
|
H A D | strrpos_basic1.phpt | 5 /* 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 D | strrpos_basic2.phpt | 5 /* 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 D | strrpos_variation1.phpt | 2 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 D | strrpos_variation10.phpt | 2 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 D | strrpos_variation11.phpt | 2 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 D | strrpos_variation12.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation13.phpt | 2 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 D | strrpos_variation15.phpt | 2 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 D | strrpos_variation2.phpt | 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]) ); [all …]
|
H A D | strrpos_variation3.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation4.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation5.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation6.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|
H A D | strrpos_variation7.phpt | 5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] ); 6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
|