diff options
Diffstat (limited to 'ext/standard/tests/strings/sprintf_variation5.phpt')
-rw-r--r-- | ext/standard/tests/strings/sprintf_variation5.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/strings/sprintf_variation5.phpt b/ext/standard/tests/strings/sprintf_variation5.phpt index ee13d3d64b..4fc37435ef 100644 --- a/ext/standard/tests/strings/sprintf_variation5.phpt +++ b/ext/standard/tests/strings/sprintf_variation5.phpt @@ -3,7 +3,7 @@ Test sprintf() function : usage variations - int formats with resource values --FILE-- <?php /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]]) - * Description: Return a formatted string + * Description: Return a formatted string * Source code: ext/standard/formatted_print.c */ @@ -15,7 +15,7 @@ $dfp = opendir ( dirname(__FILE__) ); $fp_copy = $fp; $dfp_copy = $dfp; - + // array of resource types $resource_types = array ( $fp_copy, @@ -28,11 +28,11 @@ $int_formats = array( "\t%d", "\n%d", "%4d", "%[0-9]", "%*d" ); - + $count = 1; foreach($resource_types as $res) { echo "\n-- Iteration $count --\n"; - + foreach($int_formats as $format) { var_dump( sprintf($format, $res) ); } |