diff options
Diffstat (limited to 'ext/standard/tests/strings/strcspn_variation8.phpt')
| -rw-r--r-- | ext/standard/tests/strings/strcspn_variation8.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/strings/strcspn_variation8.phpt b/ext/standard/tests/strings/strcspn_variation8.phpt index fff6e1ab0c..6881b07e50 100644 --- a/ext/standard/tests/strings/strcspn_variation8.phpt +++ b/ext/standard/tests/strings/strcspn_variation8.phpt @@ -4,7 +4,7 @@ Test strcspn() function : usage variations - with heredoc strings, varying start <?php /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]]) * Description: Finds length of initial segment consisting entirely of characters not found in mask. - If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) + If start or/and length is provided works like strcspn(substr($s,$start,$len),$bad_chars) * Source code: ext/standard/string.c * Alias to functions: none */ @@ -80,7 +80,7 @@ $start_array = array( 2147483647, // max positive integer -2147483648, // min negative integer ); - + // defining array of len values $len_array = array( 0, @@ -90,7 +90,7 @@ $len_array = array( 2147483647, // max positive integer -2147483648, // min negative integer ); - + // loop through each element of the arrays for all arguments @@ -100,7 +100,7 @@ foreach($heredoc_strings as $str) { foreach($mask_array as $mask) { foreach($start_array as $start) { foreach($len_array as $len) { - var_dump( strcspn($str,$mask,$start,$len) ); + var_dump( strcspn($str,$mask,$start,$len) ); } } } |
