diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:45:48 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:45:12 +0200 |
commit | 782352c54ad69c517e3c32b0dd2c25d74842647a (patch) | |
tree | 220bdc1e814e9f44b3578d49b3f239a3fdefa1d0 /ext/standard/tests/strings/sprintf_variation37.phpt | |
parent | 604d4bdae5037e021c1f9d35f08cbeddd610d84c (diff) | |
download | php-git-782352c54ad69c517e3c32b0dd2c25d74842647a.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/standard/tests/strings/sprintf_variation37.phpt')
-rw-r--r-- | ext/standard/tests/strings/sprintf_variation37.phpt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/standard/tests/strings/sprintf_variation37.phpt b/ext/standard/tests/strings/sprintf_variation37.phpt index 4406be95d9..d474ee0e1a 100644 --- a/ext/standard/tests/strings/sprintf_variation37.phpt +++ b/ext/standard/tests/strings/sprintf_variation37.phpt @@ -3,13 +3,13 @@ Test sprintf() function : usage variations - hexa 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() : hexa formats with array values ***\n"; -// array of array values +// array of array values $array_values = array( array(), array(0), @@ -26,8 +26,8 @@ $array_values = array( ); // array of hexa formats -$hexa_formats = array( - "%x", "%xx", "%lx", +$hexa_formats = array( + "%x", "%xx", "%lx", "%Lx", " %x", "%x ", "\t%x", "\n%x", "%4x", "%30x", "%[0-9A-Fa-f]", "%*x" @@ -36,7 +36,7 @@ $hexa_formats = array( $count = 1; foreach($array_values as $array_value) { echo "\n-- Iteration $count --\n"; - + foreach($hexa_formats as $format) { var_dump( sprintf($format, $array_value) ); } |