/PHP-5.5/ext/standard/tests/strings/ |
H A D | strspn_variation7.phpt | 2 Test strspn() function : usage variations - with heredoc strings, varying start and default len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with heredoc string, varying start and default len arguments 16 echo "*** Testing strspn() : with different start values ***\n"; 78 // defining array of different start values 90 // loop through each element of the array for heredoc strings, mask strings and start values 97 foreach($start_array as $start) { 98 var_dump( strspn($str,$mask,$start) ); // with default len value 107 *** Testing strspn() : with different start values ***
|
H A D | strspn_variation8.phpt | 2 Test strspn() function : usage variations - with heredoc strings, varying start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with heredoc string, varying start and len arguments 16 echo "*** Testing strspn() : with different start and len values ***\n"; 75 // defining array of different start values 96 // loop through each element of the array for heredoc str, mask str , start values and len values 103 foreach($start_array as $start) { 105 var_dump( strspn($str,$mask,$start,$len) ); 115 *** Testing strspn() : with different start and len values ***
|
H A D | strspn_variation9.phpt | 2 Test strspn() function : usage variations - different strings with default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strspn() : with different str and default start and len args ***\n"; 56 *** Testing strspn() : with different str and default start and len args ***
|
H A D | strspn_basic.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided, it works like strspn(substr($s,$start,$len),$good_chars) 22 $start = 8; 26 var_dump( strspn($str, $mask, $start, $len) ); 29 var_dump( strspn($str, $mask, $start) );
|
H A D | strspn_error.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 26 $start = 2; 31 var_dump( strspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strspn_variation1.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 22 $start = 1; 96 var_dump( strspn($value,$mask,$start) ); // with default len value 97 var_dump( strspn($value,$mask,$start,$len) ); // with all args
|
H A D | strspn_variation10.phpt | 2 Test strspn() function : usage variations - with varying mask & default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with varying mask and default start and len arguments 16 echo "*** Testing strspn() : with different mask strings and default start and len arguments ***\n"; 69 *** Testing strspn() : with different mask strings and default start and len arguments ***
|
H A D | strspn_variation11.phpt | 2 Test strspn() function : usage variations - with varying start and default len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with varying start and default len arguments 16 echo "*** Testing strspn() : with different start and default len values ***\n"; 54 // defining the array for start values 66 // loop through each element of the arrays for str, mask and start argument 71 foreach($start_array as $start) { 72 var_dump( strspn($str,$mask,$start) ); 81 *** Testing strspn() : with different start and default len values ***
|
H A D | strspn_variation12.phpt | 2 Test strspn() function : usage variations - with varying start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 13 * Testing strspn() : with varying start and len arguments 16 echo "*** Testing strspn() : with different start and len values ***\n"; 45 // defining the array for start values 71 foreach($start_array as $start) { 73 var_dump( strspn($str,$mask,$start,$len) ); 83 *** Testing strspn() : with different start and len values ***
|
H A D | strspn_variation2.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 21 $start = 1; 95 var_dump( strspn($str,$value,$start) ); // with default len value 96 var_dump( strspn($str,$value,$start,$len) ); // with all args
|
H A D | strspn_variation3.phpt | 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 164 -- Iteration with start value as "" -- 168 -- Iteration with start value as "" -- 172 -- Iteration with start value as "1" -- 176 -- Iteration with start value as "" -- 180 -- Iteration with start value as "1" -- 184 -- Iteration with start value as "" -- 188 -- Iteration with start value as "" -- 196 -- Iteration with start value as "" -- 228 -- Iteration with start value as "" -- [all …]
|
H A D | strspn_variation4.phpt | 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 23 $start = 0; 88 // loop through each element of the array for start 92 var_dump( strspn($str,$mask,$start,$value) ); // with all args
|
H A D | strspn_variation5.phpt | 2 Test strspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars) 70 var_dump( strspn($str,$mask) ); // with default start and len values
|
H A D | strcspn_variation7.phpt | 2 Test strcspn() function : usage variations - with heredoc strings, varying start and default len ar… 5 /* Prototype : proto int strcspn(string str, string mask [, int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying start and default len arguments 16 echo "*** Testing strcspn() : with different start values ***\n"; 79 // definig array of start values 91 // loop through each element of the arrays for str, mask and start arguments 97 foreach($start_array as $start) { 98 var_dump( strcspn($str,$mask,$start) ); // with default len value 107 *** Testing strcspn() : with different start values ***
|
H A D | strcspn_variation8.phpt | 2 Test strcspn() function : usage variations - with heredoc strings, varying start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with heredoc string, varying start and len arguments 16 echo "*** Testing strcspn() : with different start and len values ***\n"; 74 // definig array of start values 101 foreach($start_array as $start) { 103 var_dump( strcspn($str,$mask,$start,$len) ); 113 *** Testing strcspn() : with different start and len values ***
|
H A D | strcspn_variation9.phpt | 2 Test strcspn() function : usage variations - different strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with different strings as str argument and default start and len args 16 echo "*** Testing strcspn() : with different str and default start and len args ***\n"; 56 *** Testing strcspn() : with different str and default start and len args ***
|
H A D | strcspn_variation5.phpt | 2 Test strcspn() function : usage variations - with heredoc strings with default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 70 var_dump( strcspn($str,$mask) ); // with default start and len values
|
H A D | strcspn_basic.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided, it works like strcspn(substr($s,$start,$len),$bad_chars) 22 $start = 15; 26 var_dump( strcspn($str, $mask, $start, $len) ); 29 var_dump( strcspn($str, $mask, $start) );
|
H A D | strcspn_error.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 26 $start = 2; 31 var_dump( strcspn($str,$mask,$start,$len, $extra_arg) );
|
H A D | strcspn_variation1.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 22 $start = 1; 96 var_dump( strcspn($value,$mask,$start) ); // with default len value 97 var_dump( strcspn($value,$mask,$start,$len) ); // with all args
|
H A D | strcspn_variation10.phpt | 2 Test strcspn() function : usage variations - with varying mask & default start and len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying mask and default start and len arguments 16 echo "*** Testing strcspn() : with different mask strings and default start and len arguments ***\n… 67 *** Testing strcspn() : with different mask strings and default start and len arguments ***
|
H A D | strcspn_variation11.phpt | 2 Test strcspn() function : usage variations - with varying start and default len args 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying start and default len arguments 16 echo "*** Testing strcspn() : with different start and default len values ***\n"; 54 //defining array of start values 66 // loop through each element of the arrays for str,mask and start arguments 71 foreach($start_array as $start) { 72 var_dump( strcspn($str,$mask,$start) ); 81 *** Testing strcspn() : with different start and default len values ***
|
H A D | strcspn_variation12.phpt | 2 Test strcspn() function : usage variations - with varying start and len args 5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]]) 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 13 * Testing strcspn() : with varying start and len arguments 16 echo "*** Testing strcspn() : with different start and len values ***\n"; 44 //defining array of start values 65 // loop through each element of the arrays for str,mask,start and len arguments 71 foreach($start_array as $start) { 73 var_dump( strcspn($str,$mask,$start,$len) ); 83 *** Testing strcspn() : with different start and len values ***
|
H A D | strcspn_variation2.phpt | 5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) 7 If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 21 $start = 1; 95 var_dump( strcspn($str,$value,$start) ); // with default len value 96 var_dump( strcspn($str,$value,$start,$len) ); // with all args
|
H A D | strcspn_variation3.phpt | 7 … If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) 164 -- Iteration with start value as "" -- 168 -- Iteration with start value as "" -- 172 -- Iteration with start value as "1" -- 176 -- Iteration with start value as "" -- 180 -- Iteration with start value as "1" -- 184 -- Iteration with start value as "" -- 188 -- Iteration with start value as "" -- 196 -- Iteration with start value as "" -- 228 -- Iteration with start value as "" -- [all …]
|