summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/sprintf_variation31.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/sprintf_variation31.phpt')
-rw-r--r--ext/standard/tests/strings/sprintf_variation31.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/tests/strings/sprintf_variation31.phpt b/ext/standard/tests/strings/sprintf_variation31.phpt
index a081273a22..c5064127e1 100644
--- a/ext/standard/tests/strings/sprintf_variation31.phpt
+++ b/ext/standard/tests/strings/sprintf_variation31.phpt
@@ -3,13 +3,13 @@ Test sprintf() function : usage variations - octal formats with array 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
*/
echo "*** Testing sprintf() : octal formats with array values ***\n";
-// different arrays used to test the function
+// different arrays used to test the function
$array_values = array(
array(),
array(0),
@@ -27,9 +27,9 @@ $array_values = array(
);
// array of octal formats
-$octal_formats = array(
- "%o", "%ho", "%lo",
- "%Lo", " %o", "%o ",
+$octal_formats = array(
+ "%o", "%ho", "%lo",
+ "%Lo", " %o", "%o ",
"\t%o", "\n%o", "%4o",
"%30o", "%[0-7]", "%*o"
);
@@ -37,7 +37,7 @@ $octal_formats = array(
$count = 1;
foreach($array_values as $array_value) {
echo "\n-- Iteration $count --\n";
-
+
foreach($octal_formats as $format) {
var_dump( sprintf($format, $array_value) );
}