/PHP-5.3/ext/standard/tests/strings/ |
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 | strrchr_variation4.phpt | 2 Test strrchr() function : usage variations - heredoc string containing special chars for 'haystack' 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing heredoc string containing special chars for haystack 32 $special_chars_str //needle as haystack
|
H A D | strrchr_error.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 11 $haystack = "Hello"; 19 var_dump( strrchr($haystack) ); 22 var_dump( strrchr($haystack, $needle, $extra_arg) );
|
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 | strrchr_variation1.phpt | 5 /* Prototype : string strrchr(string $haystack, string $needle); 10 /* Test strrchr() function by passing various double quoted strings for '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 | stripos_variation8.phpt | 2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 15 $haystack = "aBAbaBAbaBabAbAbaBa"; 27 /* loop through to consider various offsets in getting the position of the needle in haystack strin… 31 for($offset = 0; $offset <= strlen($haystack); $offset++ ) { 32 var_dump( stripos($haystack, $needles[$index], $offset) );
|
H A D | stripos_variation5.phpt | 2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' … 5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] ); 10 /* Test stripos() function by passing heredoc string containing escape chars for haystack
|
/PHP-5.3/ext/mbstring/tests/ |
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_stripos_error1.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 25 $haystack = b'string_val'; 30 var_dump( mb_stripos($haystack, $needle, $offset, $encoding, $extra_arg) ); 34 $haystack = b'string_val'; 35 var_dump( mb_stripos($haystack) );
|
H A D | mb_strripos_error1.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 25 $haystack = b'string_val'; 30 var_dump( mb_strripos($haystack, $needle, $offset, $encoding, $extra_arg) ); 34 $haystack = b'string_val'; 35 var_dump( mb_strripos($haystack) );
|
H A D | mb_strrpos_variation3.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 23 $haystack = b'string_val'; 83 var_dump( mb_strrpos($haystack, $needle, $input, $encoding)); 100 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 105 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 116 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_strripos_variation3_Bug45923.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 24 $haystack = b'string_val'; 99 var_dump( mb_strripos($haystack, $needle, $input, $encoding)); 118 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 123 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 128 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 133 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d 138 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_strpos_error2.phpt | 10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]]) 20 $haystack = 'Hello, world'; 25 var_dump( mb_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_strrpos_error2.phpt | 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 21 $haystack = 'This is an English string. 0123456789.'; 26 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding));
|
H A D | mb_strrchr_error2.phpt | 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = b'Hello, world'; 24 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
|
H A D | mb_substr_count_error2.phpt | 10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding]) 21 $haystack = 'Hello, World!'; 26 var_dump(mb_substr_count($haystack, $needle, $encoding));
|
H A D | mb_stripos_error2.phpt | 10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]]) 21 $haystack = b'Hello, world'; 26 var_dump( mb_stripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_stristr_error2.phpt | 10 /* Prototype : string mb_stristr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = b'Hello, world'; 24 var_dump( mb_stristr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strrichr_error2.phpt | 10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = b'Hello, world'; 24 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
|
H A D | mb_strripos_error2.phpt | 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 21 $haystack = b'Hello, world'; 26 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) );
|
H A D | mb_strstr_error2.phpt | 10 /* Prototype : string mb_strstr(string haystack, string needle[, bool part[, string encoding]]) 20 $haystack = b'Hello, world'; 24 var_dump( mb_strstr($haystack, $needle, $part, $encoding) );
|
/PHP-5.3/ext/iconv/tests/ |
H A D | iconv_strpos_error1.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 24 $haystack = 'string_val'; 29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) ); 33 $haystack = 'string_val'; 34 var_dump( iconv_strpos($haystack) );
|
H A D | iconv_strpos_error2.phpt | 10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]]) 20 $haystack = 'Hello, world'; 25 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
|
H A D | iconv_strrpos_error2.phpt | 10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset]) 21 $haystack = 'This is an English string. 0123456789.'; 26 var_dump(iconv_strrpos($haystack, $needle , $encoding));
|
/PHP-5.3/ext/mbstring/ |
H A D | mbstring.c | 263 ZEND_ARG_INFO(0, haystack) 270 ZEND_ARG_INFO(0, haystack) 277 ZEND_ARG_INFO(0, haystack) 284 ZEND_ARG_INFO(0, haystack) 291 ZEND_ARG_INFO(0, haystack) 298 ZEND_ARG_INFO(0, haystack) 305 ZEND_ARG_INFO(0, haystack) 4669 haystack.len = len; in php_mb_stripos() 4671 if (!haystack.val) { in php_mb_stripos() 4716 if (haystack.val) { in php_mb_stripos() [all …]
|