Home
last modified time | relevance | path

Searched refs:strings (Results 1 – 25 of 560) sorted by relevance

12345678910>>...23

/PHP-7.4/ext/standard/tests/strings/
H A Dstrncasecmp_variation9.phpt2 Test strncasecmp() function: usage variations - heredoc strings
10 /* Test strncasecmp() function with here-doc strings for 'str1', 'str2' */
12 echo "*** Test strncasecmp() function: with here-doc strings ***\n";
58 $strings = array(
67 /* loop through to compare the strings */
68 $index2 = count($strings);
69 for($index1 = 0; $index1 < count($strings); $index1++) {
71 var_dump( strncasecmp( $strings[$index1], $strings[$index1], strlen($strings[$index1]) ) );
72 var_dump( strncasecmp( $strings[$index1], $strings[$index2], strlen($strings[$index1]) ) );
77 *** Test strncasecmp() function: with here-doc strings ***
H A Dstrncasecmp_variation8.phpt2 Test strncasecmp() function: usage variations - single quoted strings
10 /* Test strncasecmp() function with various single quoted strings for 'str1', 'str2' */
12 echo "*** Test strncasecmp() function: with single quoted strings ***\n";
13 $strings = array(
21 for($index1 = 0; $index1 < count($strings); $index1++) {
23 for($index2 = 0; $index2 < count($strings); $index2++) {
24 … var_dump( strncasecmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) );
31 \*\*\* Test strncasecmp\(\) function: with single quoted strings \*\*\*
H A Dstrncmp_variation8.phpt2 Test strncmp() function: usage variations - single quoted strings
10 /* Test strncmp() function with single quoted strings for 'str1', 'str2' */
12 echo "*** Test strncmp() function: with single quoted strings ***\n";
13 $strings = array(
21 for($index1 = 0; $index1 < count($strings); $index1++) {
23 for($index2 = 0; $index2 < count($strings); $index2++) {
24 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) );
31 \*\*\* Test strncmp\(\) function: with single quoted strings \*\*\*
H A Dstrncmp_variation2.phpt2 Test strncmp() function: usage variations - double quoted strings
10 /* Test strncmp() function with double quoted strings for 'str1', 'str2' */
12 echo "*** Test strncmp() function: with double quoted strings ***\n";
13 $strings = array(
22 for($index1 = 0; $index1 < count($strings); $index1++) {
24 for($index2 = 0; $index2 < count($strings); $index2++) {
25 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) );
32 \*\*\* Test strncmp\(\) function: with double quoted strings \*\*\*
H A Dstrncasecmp_variation2.phpt2 Test strncasecmp() function: usage variations - double quoted strings
10 /* Test strncasecmp() function with various double quoted strings for 'str1', 'str2' */
12 echo "*** Test strncasecmp() function: with double quoted strings ***\n";
13 $strings = array(
22 for($index1 = 0; $index1 < count($strings); $index1++) {
24 for($index2 = 0; $index2 < count($strings); $index2++) {
25 … var_dump( strncasecmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) );
32 \*\*\* Test strncasecmp\(\) function: with double quoted strings \*\*\*
H A Dstrrev_variation1.phpt2 Test strrev() function : usage variations - double quoted strings
15 $strings = array(
16 //strings containing escape chars
25 //polyndrome strings
29 //numeric + strings
36 //concatenated strings
41 //strings containing white spaces
47 //strings containing quotes
51 //special chars in strings
61 for( $index = 0; $index < count($strings); $index++ ) {
[all …]
H A Dstrncmp_variation9.phpt2 Test strncmp() function: usage variations - different inputs(heredoc strings)
10 /* Test strncmp() function with different strings for 'str1', 'str2' and considering case sensitive…
12 echo "*** Test strncmp() function: with different input strings ***\n";
41 $strings = array(
49 for($index1 = 0; $index1 < count($strings); $index1++) {
50 var_dump( strncmp( $strings[$index1], $strings[$index1], strlen($strings[$index1]) ) );
56 *** Test strncmp() function: with different input strings ***
H A Dstrrev_variation2.phpt2 Test strrev() function : usage variations - single quoted strings
15 $strings = array(
16 //strings containing escape chars
25 //polyndrome strings
29 //numeric + strings
36 //concatenated strings
41 //strings containing white spaces
47 //strings containing quotes
61 for( $index = 0; $index < count($strings); $index++ ) {
63 var_dump( strrev($strings[$index]) );
[all …]
H A Dstrripos_variation2.phpt2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
12 echo "*** Testing strripos() function: with single quoted strings ***\n";
15 //regular strings
79 *** Testing strripos() function: with single quoted strings ***
137 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
140 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
143 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
146 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
150 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
153 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrrpos_variation11.phpt95 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
98 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
102 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
105 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
109 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
112 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
116 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
119 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
123 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
126 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum…
12 echo "*** Testing strripos() function: with double quoted strings ***\n";
15 //regular strings
78 *** Testing strripos() function: with double quoted strings ***
136 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
139 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
142 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
145 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
149 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
152 Deprecated: strripos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrripos_variation3.phpt14 echo "*** Testing strripos() function: with heredoc strings ***\n";
22 echo "\n-- Multi line strings with +ve offsets -- \n";
27 echo "\n-- Multi line strings with +ve offsets -- \n";
32 echo "\n-- Multi line strings with no offset -- \n";
41 *** Testing strripos() function: with heredoc strings ***
44 -- Multi line strings with +ve offsets --
49 -- Multi line strings with +ve offsets --
54 -- Multi line strings with no offset --
H A Dstrrpos_variation2.phpt2 Test strrpos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
12 echo "*** Testing strrpos() function: with single quoted strings ***\n";
15 //regular strings
77 *** Testing strrpos() function: with single quoted strings ***
113 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
116 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
120 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
123 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
127 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
130 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrrchr_variation10.phpt31 //integer numeric strings
37 //float numeric strings
44 //regular strings
136 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
140 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
144 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
148 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
152 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
156 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
160 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrrpos_variation1.phpt2 Test strrpos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
12 echo "*** Testing strrpos() function: with double quoted strings ***\n";
15 //regular strings
76 *** Testing strrpos() function: with double quoted strings ***
112 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
115 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
119 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
122 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
126 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
129 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrrchr_variation11.phpt95 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
99 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
103 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
107 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
111 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
115 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
119 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
123 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
127 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
151 Deprecated: strrchr(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrrpos_variation10.phpt98 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
102 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
106 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
110 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
114 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
118 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
122 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
126 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
130 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
154 Deprecated: strrpos(): Non-string needles will be interpreted as strings in %s on line %d
[all …]
H A Dstrtoupper1.phpt34 echo "\n*** Testing strtoupper() with basic strings ***\n";
38 echo "\n*** Testing strtoupper() with various strings ***";
39 /* strings to pass strtoupper() */
40 $strings = array (
55 foreach ($strings as $string) {
63 echo "strings are same, with Case Insensitive\n";
65 echo "strings are not same\n";
204 *** Testing strtoupper() with basic strings ***
208 *** Testing strtoupper() with various strings ***
241 *** Testing strtoupper() with two different case strings ***
[all …]
H A Dstrtolower.phpt34 echo "*** Testing strlower() with basic strings ***\n";
38 echo "\n*** Testing strtolower() with various strings ***";
39 /* strings to pass strtolower() */
40 $strings = array (
55 foreach ($strings as $string) {
63 echo "strings are same, with Case Insensitive\n";
65 echo "strings are not same\n";
203 *** Testing strlower() with basic strings ***
207 *** Testing strtolower() with various strings ***
240 *** Testing strtolower() with two different case strings ***
[all …]
H A Dstrrev_variation3.phpt2 Test strrev() function : usage variations - heredoc strings
10 /* Testing strrev() function with heredoc strings for 'str' */
12 echo "*** Testing strrev() function: with heredoc strings ***\n";
44 $strings = array(
54 for( $index = 0; $index < count($strings); $index++ ) {
56 var_dump( strrev($strings[$index]) );
63 *** Testing strrev() function: with heredoc strings ***
/PHP-7.4/ext/standard/tests/array/
H A Darray_diff_variation5.phpt13 * Test how array_diff compares integers, floats and strings
28 print "-- Compare integers and strings containing an integers: --\n";
32 print "-- Compare integers and strings containing floats: --\n";
36 print "-- Compare floats and strings containing integers: --\n";
41 print "-- Compare floats and strings containing floats: --\n";
45 print "-- Compare strings containing integers and strings containing floats: --\n";
58 -- Compare integers and strings containing an integers: --
63 -- Compare integers and strings containing floats: --
80 -- Compare floats and strings containing integers: --
85 -- Compare floats and strings containing floats: --
[all …]
H A Darray_intersect_uassoc_variation7.phpt2 Test array_intersect_uassoc() function : usage variation - Intersection of strings containing integ…
26 echo "\n-- Result of strings containing integers intersection --\n";
29 echo "\n-- Result of strings containing floating points intersection --\n";
32 echo "\n-- Result of strings containing integers and strings containing floating points intersectio…
39 -- Result of strings containing integers intersection --
45 -- Result of strings containing floating points intersection --
51 -- Result of strings containing integers and strings containing floating points intersection --
H A Darray_intersect_ukey_variation7.phpt2 Test array_intersect_ukey() function : usage variation - Intersection of strings containing integer…
27 echo "\n-- Result of strings containing integers intersection --\n";
30 echo "\n-- Result of strings containing floating points intersection --\n";
33 echo "\n-- Result of strings containing integers and strings containing floating points intersectio…
40 -- Result of strings containing integers intersection --
48 -- Result of strings containing floating points intersection --
56 -- Result of strings containing integers and strings containing floating points intersection --
H A Dshuffle_variation5.phpt2 Test shuffle() function : usage variation - arrays with diff heredoc strings
11 * Test behaviour of shuffle() when an array of heredoc strings is passed to
17 // defining different heredoc strings
45 // defining array with values as heredoc strings
55 // defining array with keys as heredoc strings
65 // test shuffle() with array containing heredoc strings as values
66 echo "\n-- with array of heredoc strings --\n";
71 // test shuffle() with array containing heredoc strings as its keys
72 echo "\n-- with array having heredoc strings as keys --\n";
82 -- with array of heredoc strings --
[all …]
H A Darray_diff_assoc_variation5.phpt2 Test array_diff_assoc() function : usage variations - compare integers, floats and strings
25 echo "-- Result of comparing integers and strings containing an integers : --\n";
29 echo "-- Result of comparing integers and strings containing floating points : --\n";
33 echo "-- Result of comparing floating points and strings containing integers : --\n";
37 echo "-- Result of comparing floating points and strings containing floating point: --\n";
41 echo "-- Result of comparing strings containing integers and strings containing floating points : -…
61 -- Result of comparing integers and strings containing an integers : --
70 -- Result of comparing integers and strings containing floating points : --
91 -- Result of comparing floating points and strings containing integers : --
100 -- Result of comparing floating points and strings containing floating point: --
[all …]

Completed in 43 milliseconds

12345678910>>...23