Home
last modified time | relevance | path

Searched refs:haystack (Results 101 – 125 of 193) sorted by relevance

12345678

/PHP-5.3/ext/standard/tests/array/
H A Darray_search_variation3.phpt2 Test array_search() function : usage variations - haystack as sub-array/object
6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] )
7 …* Description: Searches haystack for needle and returns the key if it is found in the array, FALSE…
H A Darray_search_variation4.phpt2 Test array_search() function : usage variations - haystack as resource/multi dimentional array
6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] )
7 …* Description: Searches haystack for needle and returns the key if it is found in the array, FALSE…
H A Darray_search_errors.phpt6 * Prototype : mixed array_search ( mixed $needle, array $haystack [, bool $strict] )
7 …* Description: Searches haystack for needle and returns the key if it is found in the array, FALSE…
H A Din_array_errors.phpt6 * Prototype : bool in_array ( mixed $needle, array $haystack [, bool $strict] )
7 * Description: Searches haystack for needle and returns TRUE
/PHP-5.3/ext/standard/tests/strings/
H A Dstripos_variation15.phpt2 Test stripos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' …
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with unexpected inputs for 'haystack', 'needle' & 'offset' arguments */
12 echo "*** Testing stripos() function with unexpected values for haystack, needle & offset ***\n";
90 *** Testing stripos() function with unexpected values for haystack, needle & offset ***
H A Dstristr_error.phpt6 /* Prototype: string stristr ( string $haystack , mixed $needle [, bool $before_needle ] )
22 echo "\n-- Testing stristr() function with empty haystack --\n";
51 -- Testing stristr() function with empty haystack --
H A Dstripos_variation11.phpt2 Test stripos() function : usage variations - unexpected inputs for 'haystack' and 'needle' arguments
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with unexpected inputs for 'haystack' and 'needle' arguments */
12 echo "*** Testing stripos() function with unexpected values for haystack and needle ***\n";
83 $haystack = $values[$index];
92 *** Testing stripos() function with unexpected values for haystack and needle ***
H A Dstrripos_error.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_error.phpt5 /* Prototype : int strrpos ( string $haystack, string $needle [, int $offset] );
6 * Description: Find position of last occurrence of 'needle' in 'haystack'.
H A Dstripos_variation10.phpt5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
11 * an expected type of input for 'haystack' argument
30 $haystack = "string 0 1 2 -2 10.5 -10.5 10.5e10 10.6E-10 .5 array true false object \"\" null Resou…
86 var_dump( stripos($haystack, $needles[$index]) );
H A Dstripos_variation14.phpt5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
29 $haystack = "hello world";
81 var_dump( stripos($haystack, $needle, $offsets[$index]) );
H A Dbug40754.phpt56 Warning: strrpos(): Offset is greater than the length of haystack string in %s on line %d
59 Warning: strripos(): Offset is greater than the length of haystack string in %s on line %d
H A Dstristr_variation1.phpt2 Test stristr() function : usage variations - test values for $haystack argument
6 /* Prototype: string stristr ( string $haystack, string $needle );
/PHP-5.3/ext/standard/
H A Dstring.c1628 char *haystack; local
1682 char *haystack; local
1706 found = php_memnstr(haystack, needle_char, 1, haystack + haystack_len);
1730 char *haystack; local
1780 char *haystack; local
1873 p = haystack + offset;
1881 p = haystack;
1953 p = haystack;
2020 char *haystack; local
3450 o = haystack;
[all …]
/PHP-5.3/ext/mbstring/tests/
H A Dmb_strripos_variation2.phpt10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
23 $haystack = b'string_val';
99 var_dump( mb_strripos($haystack, $input, $offset, $encoding));
H A Dmb_strrpos_variation2.phpt10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]…
22 $haystack = 'hello, world';
98 var_dump( mb_strrpos($haystack, $input, $offset, $encoding));
H A Dmb_substr_count_variation2.phpt10 /* Prototype : int mb_substr_count(string $haystack, string $needle [, string $encoding])
22 $haystack = 'hello, world';
96 var_dump( mb_substr_count($haystack, $input) );
H A Dmb_stripos_variation2.phpt10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
23 $haystack = b'string_val';
99 var_dump( mb_stripos($haystack, $input, $offset, $encoding));
H A Dmb_strpos_variation2.phpt10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
22 $haystack = b'string_val';
98 var_dump( mb_strpos($haystack, $input, $offset, $encoding));
H A Dmb_stripos_variation3.phpt10 /* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
24 $haystack = b'string_val';
99 var_dump( mb_stripos($haystack, $needle, $input, $encoding));
H A Dmb_strpos_variation3.phpt10 /* Prototype : int mb_strpos(string $haystack, string $needle [, int $offset [, string $encoding]])
23 $haystack = b'string_val';
98 var_dump( mb_strpos($haystack, $needle, $input, $encoding));
/PHP-5.3/ext/iconv/tests/
H A Diconv_strpos_variation2.phpt10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
22 $haystack = 'string_val';
98 var_dump( iconv_strpos($haystack, $input, $offset, $encoding));
H A Diconv_strrpos_variation2.phpt10 /* Prototype : proto int iconv_strrpos(string haystack, string needle [, string charset])
22 $haystack = 'hello, world';
97 var_dump( iconv_strrpos($haystack, $input, $encoding));
H A Diconv_strpos_variation3_64bit.phpt11 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
24 $haystack = b'string_val';
99 var_dump( iconv_strpos($haystack, $needle, $input, $encoding));
H A Diconv_strpos_variation3.phpt11 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
24 $haystack = b'string_val';
99 var_dump( iconv_strpos($haystack, $needle, $input, $encoding));

Completed in 39 milliseconds

12345678