/PHP-8.4/ext/standard/tests/strings/ |
H A D | strncmp_variation8.phpt | 2 Test strncmp() function: usage variations - single quoted strings 5 /* Test strncmp() function with single quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncmp() function: with single quoted strings ***\n"; 8 $strings = array( 16 for($index1 = 0; $index1 < count($strings); $index1++) { 18 for($index2 = 0; $index2 < count($strings); $index2++) { 19 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 26 \*\*\* Test strncmp\(\) function: with single quoted strings \*\*\*
|
H A D | strncasecmp_variation8.phpt | 2 Test strncasecmp() function: usage variations - single quoted strings 5 /* Test strncasecmp() function with various single quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncasecmp() function: with single quoted strings ***\n"; 8 $strings = array( 16 for($index1 = 0; $index1 < count($strings); $index1++) { 18 for($index2 = 0; $index2 < count($strings); $index2++) { 19 … var_dump( strncasecmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 26 \*\*\* Test strncasecmp\(\) function: with single quoted strings \*\*\*
|
H A D | strncasecmp_variation9.phpt | 2 Test strncasecmp() function: usage variations - heredoc strings 5 /* Test strncasecmp() function with here-doc strings for 'str1', 'str2' */ 7 echo "*** Test strncasecmp() function: with here-doc strings ***\n"; 53 $strings = array( 62 /* loop through to compare the strings */ 63 $index2 = count($strings); 64 for($index1 = 0; $index1 < count($strings); $index1++) { 66 var_dump( strncasecmp( $strings[$index1], $strings[$index1], strlen($strings[$index1]) ) ); 67 var_dump( strncasecmp( $strings[$index1], $strings[$index2], strlen($strings[$index1]) ) ); 72 *** Test strncasecmp() function: with here-doc strings ***
|
H A D | strncmp_variation2.phpt | 2 Test strncmp() function: usage variations - double quoted strings 5 /* Test strncmp() function with double quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncmp() function: with double quoted strings ***\n"; 8 $strings = array( 17 for($index1 = 0; $index1 < count($strings); $index1++) { 19 for($index2 = 0; $index2 < count($strings); $index2++) { 20 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 27 \*\*\* Test strncmp\(\) function: with double quoted strings \*\*\*
|
H A D | strncasecmp_variation2.phpt | 2 Test strncasecmp() function: usage variations - double quoted strings 5 /* Test strncasecmp() function with various double quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncasecmp() function: with double quoted strings ***\n"; 8 $strings = array( 17 for($index1 = 0; $index1 < count($strings); $index1++) { 19 for($index2 = 0; $index2 < count($strings); $index2++) { 20 … var_dump( strncasecmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 27 \*\*\* Test strncasecmp\(\) function: with double quoted strings \*\*\*
|
H A D | strrev_variation1.phpt | 2 Test strrev() function : usage variations - double quoted strings 10 $strings = array( 11 //strings containing escape chars 20 //polyndrome strings 24 //numeric + strings 31 //concatenated strings 36 //strings containing white spaces 42 //strings containing quotes 46 //special chars in strings 56 for( $index = 0; $index < count($strings); $index++ ) { [all …]
|
H A D | strncmp_variation9.phpt | 2 Test strncmp() function: usage variations - different inputs(heredoc strings) 5 /* Test strncmp() function with different strings for 'str1', 'str2' and considering case sensitive… 7 echo "*** Test strncmp() function: with different input strings ***\n"; 36 $strings = array( 44 for($index1 = 0; $index1 < count($strings); $index1++) { 45 var_dump( strncmp( $strings[$index1], $strings[$index1], strlen($strings[$index1]) ) ); 51 *** Test strncmp() function: with different input strings ***
|
H A D | strrev_variation2.phpt | 2 Test strrev() function : usage variations - single quoted strings 10 $strings = array( 11 //strings containing escape chars 20 //polyndrome strings 24 //numeric + strings 31 //concatenated strings 36 //strings containing white spaces 42 //strings containing quotes 56 for( $index = 0; $index < count($strings); $index++ ) { 58 var_dump( strrev($strings[$index]) ); [all …]
|
H A D | strripos_variation3.phpt | 9 echo "*** Testing strripos() function: with heredoc strings ***\n"; 17 echo "\n-- Multi line strings with +ve offsets -- \n"; 22 echo "\n-- Multi line strings with +ve offsets -- \n"; 27 echo "\n-- Multi line strings with no offset -- \n"; 35 *** Testing strripos() function: with heredoc strings *** 38 -- Multi line strings with +ve offsets -- 43 -- Multi line strings with +ve offsets -- 48 -- Multi line strings with no offset --
|
H A D | strrev_variation3.phpt | 2 Test strrev() function : usage variations - heredoc strings 5 /* Testing strrev() function with heredoc strings for 'str' */ 7 echo "*** Testing strrev() function: with heredoc strings ***\n"; 39 $strings = array( 49 for( $index = 0; $index < count($strings); $index++ ) { 51 var_dump( strrev($strings[$index]) ); 58 *** Testing strrev() function: with heredoc strings ***
|
H A D | nl2br_variation1.phpt | 2 Test nl2br() function : usage variations - double quoted strings for 'str' argument 5 /* Test nl2br() function by passing double quoted strings containing various 11 $strings = array( 12 //new line chars embedded in strings 34 //loop through $strings array to test nl2br() function with each element 36 foreach( $strings as $str ){
|
/PHP-8.4/ext/standard/tests/array/ |
H A D | array_diff_variation5.phpt | 7 * Test how array_diff compares integers, floats and strings 22 print "-- Compare integers and strings containing an integers: --\n"; 26 print "-- Compare integers and strings containing floats: --\n"; 30 print "-- Compare floats and strings containing integers: --\n"; 35 print "-- Compare floats and strings containing floats: --\n"; 39 print "-- Compare strings containing integers and strings containing floats: --\n"; 52 -- Compare integers and strings containing an integers: -- 57 -- Compare integers and strings containing floats: -- 74 -- Compare floats and strings containing integers: -- 79 -- Compare floats and strings containing floats: -- [all …]
|
H A D | array_intersect_uassoc_variation7.phpt | 2 Test array_intersect_uassoc() function : usage variation - Intersection of strings containing integ… 21 echo "\n-- Result of strings containing integers intersection --\n"; 24 echo "\n-- Result of strings containing floating points intersection --\n"; 27 echo "\n-- Result of strings containing integers and strings containing floating points intersectio… 33 -- Result of strings containing integers intersection -- 39 -- Result of strings containing floating points intersection -- 45 -- Result of strings containing integers and strings containing floating points intersection --
|
H A D | array_intersect_ukey_variation7.phpt | 2 Test array_intersect_ukey() function : usage variation - Intersection of strings containing integer… 22 echo "\n-- Result of strings containing integers intersection --\n"; 25 echo "\n-- Result of strings containing floating points intersection --\n"; 28 echo "\n-- Result of strings containing integers and strings containing floating points intersectio… 34 -- Result of strings containing integers intersection -- 42 -- Result of strings containing floating points intersection -- 50 -- Result of strings containing integers and strings containing floating points intersection --
|
H A D | shuffle_variation5.phpt | 2 Test shuffle() function : usage variation - arrays with diff heredoc strings 6 * Test behaviour of shuffle() when an array of heredoc strings is passed to 12 // defining different heredoc strings 40 // defining array with values as heredoc strings 50 // defining array with keys as heredoc strings 60 // test shuffle() with array containing heredoc strings as values 61 echo "\n-- with array of heredoc strings --\n"; 66 // test shuffle() with array containing heredoc strings as its keys 67 echo "\n-- with array having heredoc strings as keys --\n"; 77 -- with array of heredoc strings -- [all …]
|
H A D | array_diff_assoc_variation5.phpt | 2 Test array_diff_assoc() function : usage variations - compare integers, floats and strings 19 echo "-- Result of comparing integers and strings containing an integers : --\n"; 23 echo "-- Result of comparing integers and strings containing floating points : --\n"; 27 echo "-- Result of comparing floating points and strings containing integers : --\n"; 31 echo "-- Result of comparing floating points and strings containing floating point: --\n"; 35 echo "-- Result of comparing strings containing integers and strings containing floating points : -… 55 -- Result of comparing integers and strings containing an integers : -- 64 -- Result of comparing integers and strings containing floating points : -- 85 -- Result of comparing floating points and strings containing integers : -- 94 -- Result of comparing floating points and strings containing floating point: -- [all …]
|
H A D | array_diff_uassoc_variation7.phpt | 2 Test array_diff_uassoc() function : usage variation - Comparing strings containing integers and flo… 19 echo "\n-- Result of comparing strings containing integers and strings containing floating points -… 27 -- Result of comparing strings containing integers and strings containing floating points --
|
H A D | array_intersect_uassoc_variation6.phpt | 2 …array_intersect_uassoc() function : usage variation - Intersection of floating points with strings. 20 echo "\n-- Result of floating points and strings containing integers intersection --\n"; 23 echo "\n-- Result of floating points and strings containing floating point intersection --\n"; 29 -- Result of floating points and strings containing integers intersection -- 37 -- Result of floating points and strings containing floating point intersection --
|
H A D | array_intersect_ukey_variation6.phpt | 2 …t array_intersect_ukey() function : usage variation - Intersection of floating points with strings. 21 echo "\n-- Result of floating points and strings containing integers intersection --\n"; 24 echo "\n-- Result of floating points and strings containing floating point intersection --\n"; 30 -- Result of floating points and strings containing integers intersection -- 38 -- Result of floating points and strings containing floating point intersection --
|
H A D | array_diff_uassoc_variation6.phpt | 2 Test array_diff_uassoc() function : usage variation - Comparing floating points with strings having… 20 echo "\n-- Result of comparing floating points and strings containing integers --\n"; 24 echo "\n-- Result of comparing floating points and strings containing floating point --\n"; 32 -- Result of comparing floating points and strings containing integers -- 38 -- Result of comparing floating points and strings containing floating point --
|
H A D | array_diff_uassoc_variation8.phpt | 2 Test array_diff_uassoc() function : usage variation - Comparing integers with strings containing in… 20 echo "\n-- Result of comparing integers and strings containing an integers --\n"; 24 echo "\n-- Result of comparing integers and strings containing floating points --\n"; 32 -- Result of comparing integers and strings containing an integers -- 40 -- Result of comparing integers and strings containing floating points --
|
H A D | array_diff_basic.phpt | 20 //Test indexed array with strings as elements 24 echo "-- Test indexed array with strings as elements --\n"; 28 //Test associative array with strings as keys and integers as elements 32 echo "-- Test associative array with strings as keys and integers as elements --\n"; 36 //Test associative array with strings as keys and elements 40 echo "-- Test associative array with strings as keys and integers as elements --\n"; 64 -- Test indexed array with strings as elements -- 77 -- Test associative array with strings as keys and integers as elements -- 90 -- Test associative array with strings as keys and integers as elements --
|
H A D | array_intersect_uassoc_variation5.phpt | 2 …y_intersect_uassoc() function : usage variation - Intersection of integers with floats and strings. 24 echo "\n-- Result of integers and strings containing integers intersection --\n"; 27 echo "\n-- Result of integers and strings containing floating points intersection --\n"; 41 -- Result of integers and strings containing integers intersection -- 49 -- Result of integers and strings containing floating points intersection --
|
H A D | uasort_variation5.phpt | 2 Test uasort() function : usage variations - sort diff. strings 6 * sorting different strings: 7 * single quoted, double quoted and heredoc strings 24 // Different heredoc strings to be sorted 44 // Single quoted strings 53 // Double quoted strings 62 // Heredoc strings
|
/PHP-8.4/ext/standard/tests/general_functions/ |
H A D | var_export_basic4.phpt | 2 Test var_export() function with valid strings 5 echo "*** Testing var_export() with valid strings ***\n"; 26 /* Loop to check for above strings with var_export() */ 27 echo "\n*** Output for strings ***\n"; 40 *** Testing var_export() with valid strings *** 42 *** Output for strings ***
|