/PHP-7.2/ext/mbstring/tests/ |
H A D | bug43841.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 40 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 45 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 49 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 55 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 60 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 64 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_stristr_error1.phpt | 10 /* Prototype : string mb_stristr(string haystack, string needle[, bool part[, string encoding]]) 21 $haystack = 'string_val'; 26 var_dump( mb_stristr($haystack, $needle, $part, $encoding, $extra_arg) ); 30 $haystack = 'string_val'; 31 var_dump( mb_stristr($haystack) );
|
H A D | mb_strpos_error1.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 24 $haystack = 'string_val'; 29 var_dump( mb_strpos($haystack, $needle, $offset, $encoding, $extra_arg) ); 33 $haystack = 'string_val'; 34 var_dump( mb_strpos($haystack) );
|
H A D | mb_strrchr_error1.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 21 $haystack = 'string_val'; 26 var_dump( mb_strrchr($haystack, $needle, $part, $encoding, $extra_arg) ); 30 $haystack = 'string_val'; 31 var_dump( mb_strrchr($haystack) );
|
H A D | mb_strrichr_error1.phpt | 10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]]) 21 $haystack = 'string_val'; 26 var_dump( mb_strrichr($haystack, $needle, $part, $encoding, $extra_arg) ); 30 $haystack = 'string_val'; 31 var_dump( mb_strrichr($haystack) );
|
H A D | mb_strrpos_error1.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 24 $haystack = 'string_val'; 29 var_dump( mb_strrpos($haystack, $needle, $offset, $encoding, $extra_arg) ); 33 $haystack = 'string_val'; 34 var_dump( mb_strrpos($haystack) );
|
H A D | mb_strstr_error1.phpt | 10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]]) 21 $haystack = 'string_val'; 26 var_dump( mb_strstr($haystack, $needle, $part, $encoding, $extra_arg) ); 30 $haystack = 'string_val'; 31 var_dump( mb_strstr($haystack) );
|
H A D | mb_substr_count_error1.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 24 $haystack = 'string_val'; 28 var_dump( mb_substr_count($haystack, $needle, $encoding, $extra_arg) ); 32 $haystack = 'string_val'; 33 var_dump( mb_substr_count($haystack) );
|
H A D | mb_substr_count_variation4.phpt | 2 Test mb_substr_count() function : variation - pass a $needle that overlaps in $haystack 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 16 * Pass mb_substr_count() a $needle that overlaps in $haystack and see whether 26 var_dump(mb_substr_count($string_ascii, 'abcabc')); //needle overlaps in haystack
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | strrchr_variation3.phpt | 2 Test strrchr() function : usage variations - multi line heredoc string for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing multi-line heredoc string for haystack and 25 $multi_line_str //needle as haystack
|
H A D | strripos_variation5.phpt | 2 Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack'… 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 heredoc string containing escape chars for haystack
|
H A D | strrpos_variation12.phpt | 2 Test strrpos() function : usage variations - checking binary safe with 'haystack' 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 'haystack' argument
|
H A D | strrpos_variation3.phpt | 2 Test strrpos() function : usage variations - multi line heredoc string for 'haystack' 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 by passing multi-line heredoc string for haystack and
|
H A D | strrchr_variation6.phpt | 2 Test strrchr() function : usage variations - heredoc string containing quote chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing quote chars for haystack 26 $quote_char_str //needle as 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 26 //heredoc string for haystack & needle
|
H A D | strrpos_variation6.phpt | 2 Test strrpos() function : usage variations - heredoc string containing quotes for 'haystack' 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 heredoc string containing quotes for haystack
|
H A D | stripos_variation13.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 15 $haystack = "\0Hello\0World\0"; 28 var_dump( stripos($haystack, $needles[$index]) ); 29 var_dump( stripos($haystack, $needles[$index], $index) );
|
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 *** 99 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 103 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 107 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d 111 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | strrchr_variation2.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing various single quoted strings to 'haystack' & 'needle' */ 13 $haystack = 'Hello,\t\n\0\n $&!#%\o,()*+-./:;<=>?@hello123456he \x234 \101 '; 72 $haystack //haystack as needle 75 /* loop through to get the position of the needle in haystack string */ 79 var_dump( strrchr($haystack, $needle[$index]) );
|
H A D | strripos_variation4.phpt | 2 Test strripos() function : usage variations - heredoc string containing special chars for 'haystack… 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 heredoc string containing special chars for haystack
|
H A D | strrpos_variation4.phpt | 2 Test strrpos() function : usage variations - heredoc string containing special chars for 'haystack'… 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 heredoc string containing special chars for haystack
|
H A D | stripos_basic1.phpt | 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 16 //regular string for haystack & needle 26 //heredoc string for haystack & needle 31 //non-existing needle in haystack
|
H A D | strrchr_variation5.phpt | 2 …t strrchr() function : usage variations - heredoc string containing escape sequences for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 11 * escape sequences for haystack and with various needles 25 $escape_char_str //needle as haystack
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | in_array_variation2.phpt | 2 Test in_array() function : usage variations - different haystack values 6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] ) 7 * Description: Searches haystack for needle and returns TRUE 12 /* Test in_array() with different possible haystack values */ 14 echo "*** Testing in_array() with different haystack values ***\n"; 53 *** Testing in_array() with different haystack values ***
|
/PHP-7.2/ext/iconv/tests/ |
H A D | iconv_strrpos_error1.phpt | 10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset]) 24 $haystack = 'string_val'; 28 var_dump( iconv_strrpos($haystack, $needle, $encoding, $extra_arg) ); 32 $haystack = 'string_val'; 33 var_dump( iconv_strrpos($haystack) );
|